summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-04 07:48:39 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-04 13:56:15 +0200
commitb1d62854f407d63fbec91861ca848935c3dd5b47 (patch)
tree997d2d1f4c3ef79d420c4eddd51a5dc0d1ebdddd /Makefile
parent129c45f840a8456395cbbc042aaef285f6ec9430 (diff)
downloadalpine-conf-b1d62854f407d63fbec91861ca848935c3dd5b47.zip
make: add target for iso image
Make an iso image that can be mounted in a virtual machine for testing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f2f4688..c7b5089 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
%: %.in
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
-.PHONY: all apk clean install uninstall
+.PHONY: all apk clean install uninstall iso
all: $(SCRIPTS) $(BIN_FILES)
uniso: uniso.c
@@ -94,4 +94,10 @@ uninstall:
done
clean:
- rm -rf $(SCRIPTS) $(BIN_FILES)
+ rm -rf $(SCRIPTS) $(BIN_FILES) alpine-conf.iso
+
+alpine-conf.iso: $(SCRIPTS) $(BIN_FILES)
+ $(MAKE) install PREFIX=/ DESTDIR=tmp/
+ xorriso -as mkisofs -r -V 'ALPINECONF' -J -o $@ tmp/ && rm -rf tmp
+
+iso: alpine-conf.iso