chiark / gitweb /
Makefile, zone.asd: Use ASDF and `runlisp' for building images.
[zone] / Makefile
index 6cbf5950a82780c2af9a5822c774215ebca3eb89..868a9cf2cb4a7dd37fa00f15faa05046077f253a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+bindir = $(HOME)/bin
+
 SOURCES = \
        zone.asd \
        frontend.lisp \
@@ -5,9 +7,11 @@ SOURCES = \
        net.lisp serv.lisp sys.lisp \
        addr-family-ipv4.lisp addr-family-ipv6.lisp
 
-CLEANFILES += zone
 all:: zone
 zone: $(SOURCES)
-       cl-launch -o $@ -s zone +I -d `pwd`/zone.core -r zone.frontend:main
-
-clean:; rm -f $(CLEANFILES)
+       ASDF_OUTPUT_TRANSLATIONS="(:output-translations ((#p\"$(abspath zone.img)\") t) :inherit-configuration)" \
+               runlisp -e "(progn (asdf:clear-configuration) (asdf:operate 'asdf:program-op \"zone\"))"
+       mv zone.img $@
+clean:: rm -f zone
+install:: zone
+       install zone $(bindir)/