]> git.ipfire.org Git - oddments/ipfire-netboot.git/commitdiff
Make some more options for makefile and generate a tftp-loadable image.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 27 Dec 2010 22:46:57 +0000 (23:46 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 27 Dec 2010 22:46:57 +0000 (23:46 +0100)
.gitignore [new file with mode: 0644]
Makefile

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..ba077a4
--- /dev/null
@@ -0,0 +1 @@
+bin
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/$@ $@