]> git.ipfire.org Git - oddments/ipfire-netboot.git/blobdiff - Makefile
Use our own versioning field to make upgrades easier
[oddments/ipfire-netboot.git] / Makefile
index 7d63e86b49e83030a7a01d5591386b36734af3da..cfc3d1849fbf1e04bd00842cfbde23d1e32e487c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
 
+VERSION = 2.0
+
 SCRIPTS = $(CURDIR)/ipfireboot.ipxe
 MACHINE = $(shell uname -m)
 
@@ -13,10 +15,14 @@ endif
 all: $(TARGETS)
 
 clean:
-       rm -rfv $(TARGETS)
+       rm -rfv $(SCRIPTS) $(TARGETS)
        make -C ipxe/src clean veryclean
 
-$(TARGETS):
+%: %.in
+       sed -e "s/@VERSION@/$(VERSION)/g" \
+               < $< > $@
+
+$(TARGETS): $(SCRIPTS) config/branding.h config/general.h
        # Copy our configuration to the gPXE submodule
        cp -vf config/* ipxe/src/config/local/