aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2022-05-22 00:32:48 +0200
committerTeddy Wing2022-05-22 00:41:18 +0200
commit0c58692dddac6643c55dc35f0b8f03ea4991104f (patch)
tree28f85c80feea7ebb88b2e0fd3105e5c74b5b90ac /Makefile
parented21989821175af68bc9bfa558b677991e04802d (diff)
downloadwajir-0c58692dddac6643c55dc35f0b8f03ea4991104f.tar.bz2
Makefile: Bundle dependencies for packaging
Since I can't load Quicklisp dependencies when building with Homebrew or MacPorts, do `(ql:bundle-systems)` to create a bundle that includes all dependencies and can be packaged into a tarball for building from package managers.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b01ee3e..1ae8c87 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,19 @@ $(MAN_PAGE): doc/wajir.1.txt
a2x --no-xmllint --format manpage $<
+bundle: bundle.lisp
+ mkdir -p lib/wajir
+ cp -a wajir.asd src lib/wajir/
+
+ $(LISP) --load bundle.lisp
+
+bundle/bundled-local-projects/0000/wajir/wajir: bundle
+ $(LISP) --load bundle/bundle.lisp \
+ --eval '(asdf:make :wajir)' \
+ --eval '(quit)'
+
+
.PHONY: install
install:
- install -m 755 wajir $(PREFIX)/bin
+ install -m 755 bundle/bundled-local-projects/0000/wajir/wajir $(PREFIX)/bin
install -m 755 $(MAN_PAGE) $(PREFIX)/share/man/man1