| 1 |
DESTDIR = /usr/local |
| 2 |
LISP := sbcl |
| 3 |
|
| 4 |
ifeq ($(LISP),sbcl) |
| 5 |
FLAGS=--noinform --no-userinit --no-sysinit --disable-debugger |
| 6 |
else |
| 7 |
FLAGS=--quiet --no-init |
| 8 |
endif |
| 9 |
|
| 10 |
buildapp: command-line.lisp utils.lisp buildapp.lisp dumper.lisp package.lisp |
| •11 |
HOME=/tmp $(LISP) $(FLAGS) \ |
| 12 |
--eval "(require 'asdf)" \ |
| 13 |
--eval "(push \"$$(pwd)/\" asdf:*central-registry*)" \ |
| 14 |
--eval "(require 'buildapp)" \ |
| 15 |
--eval "(buildapp::build-buildapp)" \ |
| 16 |
--eval "#+sbcl (exit) #+ccl (quit)" |
| 17 |
|
| 18 |
clean: |
| 19 |
rm -f buildapp *~ *.fasl *.lx32fsl |
| 20 |
|
| 21 |
install: buildapp |
| 22 |
install -c -m 555 buildapp ${DESTDIR}/bin/buildapp |