PUD: always regenerate version.h
authorFerry Huberts <f.huberts@mindef.nl>
Mon, 10 Oct 2011 13:44:09 +0000 (15:44 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Mon, 10 Oct 2011 13:44:09 +0000 (15:44 +0200)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/pud/Makefile

index 458fc99..5f631e7 100644 (file)
@@ -31,18 +31,18 @@ else
 
 all: default_target
 
-default_target: $(VERSION_FILE) $(PLUGIN_FULLNAME)
+default_target: version $(PLUGIN_FULLNAME)
 
 $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
        @echo "[LD] $@"
        @$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
 
-$(VERSION_FILE): Makefile scripts/makeVersionH
-       @echo "[$@]"
-       @./scripts/makeVersionH "$@" "$(PLUGIN_VER)"
 
+.PHONY:        version install uninstall clean dist distclean doc doc-clean
 
-.PHONY:        install uninstall clean dist distclean doc doc-clean
+version: Makefile scripts/makeVersionH
+       @echo "[$(VERSION_FILE)]"
+       @./scripts/makeVersionH "$(VERSION_FILE)" "$(PLUGIN_VER)"
 
 install: $(PLUGIN_FULLNAME)
        $(INSTALL_LIB)