]> git.ipfire.org Git - oddments/ipfire-netboot.git/blobdiff - Makefile
Make some more options for makefile and generate a tftp-loadable image.
[oddments/ipfire-netboot.git] / Makefile
index db35636eccba8a2750b41019e15f16718f468607..05540dc110eba3a4c208256f654c61a8c86b1f40 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,15 @@
 
 SCRIPTS = $(CURDIR)/ipfireboot.gpxe
 
-all:
-       make -C gpxe/src EMBEDDED_IMAGE=$(SCRIPTS)
+TARGETS = bin/gpxe.iso bin/gpxe.kpxe
+
+all: $(TARGETS)
+
+clean:
+       rm -rfv $(TARGETS)
+       make -C gpxe/src clean
+
+$(TARGETS):
+       make -C gpxe/src EMBEDDED_IMAGE=$(SCRIPTS) $@
+       -mkdir -pv $$(dirname $@)
+       cp -vf gpxe/src/$@ $@