]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
convert config check to rule
authorSven Wegener <sven.wegener@stealer.net>
Mon, 9 Nov 2015 19:44:17 +0000 (20:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 9 Nov 2015 21:11:16 +0000 (22:11 +0100)
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Makefile

index 74462a7708c83a267ff081ec2a330e56bda7454d..d1772a949bf0a57e8576009548e781a248c84c27 100644 (file)
--- 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