From: Sven Wegener Date: Mon, 9 Nov 2015 19:44:17 +0000 (+0100) Subject: convert config check to rule X-Git-Tag: v4.2.1~1621 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24332cf78142d0b7eb56a860b5b9789b5d965b72;p=thirdparty%2Ftvheadend.git convert config check to rule Signed-off-by: Sven Wegener --- diff --git a/Makefile b/Makefile index 74462a770..d1772a949 100644 --- a/Makefile +++ b/Makefile @@ -541,20 +541,19 @@ SRCS += build.c timestamp.c all: $(ALL-yes) ${PROG} # Special -.PHONY: clean distclean check_config reconfigure +.PHONY: clean distclean reconfigure # Check configure output is valid -check_config: - @test $(ROOTDIR)/.config.mk -nt $(ROOTDIR)/configure\ - || echo "./configure output is old, please re-run" - @test $(ROOTDIR)/.config.mk -nt $(ROOTDIR)/configure +.config.mk: configure + @echo "./configure output is old, please re-run" + @false # Recreate configuration reconfigure: $(ROOTDIR)/configure $(CONFIGURE_ARGS) # Binary -${PROG}: check_config make_webui $(OBJS) +${PROG}: .config.mk make_webui $(OBJS) $(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS) # Object