From 53b9268d83ad07e843df7ee9a0d2baaa5b1878eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Sun, 24 Nov 2024 22:52:56 +0200 Subject: [PATCH] [sb2] Make sure config.h is updated and cleaned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Bidar --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e5d9ff12..899e13a6 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,8 @@ include $(LLBUILD)/Makefile.include # while configure is running when any of these or their # dependencies change DIST_FILES = $(OBJDIR)/config.status \ - $(OBJDIR)/config.mak + $(OBJDIR)/config.mak \ + $(SRCDIR)/include/config.h.in all: $(DIST_FILES) .WAIT do-all @@ -76,13 +77,16 @@ do-all: $(targets) # Don't erase these files if make is interrupted while refreshing them. .PRECIOUS: $(OBJDIR)/config.status -$(OBJDIR)/config.status $(OBJDIR)/config.mak: $(SRCDIR)/configure $(SRCDIR)/config.mak.in +$(DIST_FILES): $(SRCDIR)/configure $(SRCDIR)/config.mak.in $(OBJDIR)/config.status --recheck $(SRCDIR)/configure: $(SRCDIR)/configure.ac cd $(SRCDIR); \ ./autogen.sh +$(OBJDDIR)/include/config.h: $(OBJDIR)/config.h.in $(OBJDIR)/config.status + $(OBJDIR)/config.status config.h + $(OBJDIR)/include/scratchbox2_version.h: $(OBJDIR)/config.mak mkdir -p $(OBJDIR)/include echo "/* Automatically generated file. Do not edit. */" >$(OBJDIR)/include/scratchbox2_version.h @@ -207,10 +211,12 @@ ifeq ($(OS),Linux) endif CLEAN_FILES += $(targets) \ + $(OBJDIR)/include/config.h \ $(OBJDIR)/include/scratchbox2_version.h DISTCLEAN_FILES += $(DIST_FILES) \ $(OBJDIR)/config.log \ - $(SRCDIR)/configure + $(SRCDIR)/configure \ + $(SRCDIR)/include/config.h.in distclean: clean $(P)CLEAN