mirror of
https://codeberg.org/cage/tinmop/
synced 2024-12-23 23:51:50 +01:00
- simplified Makefile (used asdf to build the executable in a portable way).
This commit is contained in:
parent
02ade8d0ed
commit
d132a513d3
16
Makefile.am
16
Makefile.am
@ -57,18 +57,10 @@ scripts/welcome-bot.lisp
|
||||
dist_man1_MANS = doc/tinmop.man
|
||||
|
||||
$(PACKAGE): $(CONF_PATH_FILE) *.asd src/*
|
||||
if test $$(basename "$(LISP_COMPILER)") = "sbcl"; then \
|
||||
$(LISP_COMPILER) \
|
||||
--eval "(asdf:load-system '$(PACKAGE))" \
|
||||
--eval "(in-package main)" \
|
||||
--eval "(sb-ext:save-lisp-and-die \"$(PACKAGE)\" :toplevel 'main::main :executable t :purify t :save-runtime-options t)"; \
|
||||
else \
|
||||
$(LISP_COMPILER) \
|
||||
--eval "(asdf:load-system '$(PACKAGE))" \
|
||||
--eval "(in-package main)" \
|
||||
--eval "(asdf:make-build :tinmop :type :program :move-here #P\"./\" :epilogue-code '(main::main))" \
|
||||
--eval "(si:exit)"; \
|
||||
fi
|
||||
$(LISP_COMPILER) \
|
||||
--eval "(asdf:make '$(PACKAGE) :build-pathname \"../$(PACKAGE)\")" \
|
||||
--eval "(uiop:quit)"
|
||||
mv src/tinmop $(PACKAGE)
|
||||
$(CONF_PATH_FILE):
|
||||
grep "^;" $(CONF_PATH_FILE_IN) > $(CONF_PATH_FILE)
|
||||
echo -e "(in-package :config)\n" >> $(CONF_PATH_FILE);
|
||||
|
16
Makefile.in
16
Makefile.in
@ -1048,18 +1048,10 @@ uninstall-man: uninstall-man1
|
||||
|
||||
|
||||
$(PACKAGE): $(CONF_PATH_FILE) *.asd src/*
|
||||
if test $$(basename "$(LISP_COMPILER)") = "sbcl"; then \
|
||||
$(LISP_COMPILER) \
|
||||
--eval "(asdf:load-system '$(PACKAGE))" \
|
||||
--eval "(in-package main)" \
|
||||
--eval "(sb-ext:save-lisp-and-die \"$(PACKAGE)\" :toplevel 'main::main :executable t :purify t :save-runtime-options t)"; \
|
||||
else \
|
||||
$(LISP_COMPILER) \
|
||||
--eval "(asdf:load-system '$(PACKAGE))" \
|
||||
--eval "(in-package main)" \
|
||||
--eval "(asdf:make-build :tinmop :type :program :move-here #P\"./\" :epilogue-code '(main::main))" \
|
||||
--eval "(si:exit)"; \
|
||||
fi
|
||||
$(LISP_COMPILER) \
|
||||
--eval "(asdf:make '$(PACKAGE) :build-pathname \"../$(PACKAGE)\")" \
|
||||
--eval "(uiop:quit)"
|
||||
mv src/tinmop $(PACKAGE)
|
||||
$(CONF_PATH_FILE):
|
||||
grep "^;" $(CONF_PATH_FILE_IN) > $(CONF_PATH_FILE)
|
||||
echo -e "(in-package :config)\n" >> $(CONF_PATH_FILE);
|
||||
|
@ -53,6 +53,8 @@
|
||||
:percent-encoding
|
||||
:trivial-clipboard
|
||||
:uiop)
|
||||
:entry-point "main::main"
|
||||
:build-operation program-op
|
||||
:components ((:file "package")
|
||||
(:file "idn")
|
||||
(:file "config")
|
||||
|
Loading…
Reference in New Issue
Block a user