X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/58a9509014d2d133b91e96c7956957f82bc000a4..refs/heads/mdw/progfmt:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 7b23dd8..8a23b69 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,7 +7,7 @@ ###----- Licensing notice --------------------------------------------------- ### -### This file is part of the Sensble Object Design, an object system for C. +### This file is part of the Sensible Object Design, an object system for C. ### ### SOD is free software; you can redistribute it and/or modify ### it under the terms of the GNU General Public License as published by @@ -110,25 +110,20 @@ sod.asd: sod.asd.in Makefile $(SUBST) $(srcdir)/sod.asd.in >$@.new $(SUBSTITUTIONS) && \ mv $@.new $@ -EXTRA_DIST += sod-frontend.asd.in -CLEANFILES += sod-frontend.asd -sod-frontend.asd: sod-frontend.asd.in Makefile - $(SUBST) $(srcdir)/sod-frontend.asd.in >$@.new $(SUBSTITUTIONS) && \ - mv $@.new $@ - ## Building the executable image. bin_PROGRAMS += sod sod_SOURCES = -sod: $(LISP_SOURCES) sod.asd sod-frontend.asd auto.lisp - $(V_DUMP)$(CL_LAUNCH) -o sod -d ! -l $(LISPSYS) +I \ - -s sod-frontend -r sod-frontend:main +sod$(EXEEXT): $(LISP_SOURCES) sod.asd auto.lisp + $(V_DUMP)$(ASDF_ENV) $(RUNLISP) -L$(WORKING_LISPS) \ + -e "(asdf:clear-configuration)" \ + -e "(asdf:operate 'asdf:program-op \"sod/frontend\")" + +## The executable is needed if we're just distributing. +dist-hook: sod$(EXEEXT) ###-------------------------------------------------------------------------- ### Unit testing. -## The system definition. -EXTRA_DIST += sod-test.asd.in - ## Basic utilities. EXTRA_DIST += test-base.lisp @@ -141,20 +136,21 @@ EXTRA_DIST += c-types-test.lisp EXTRA_DIST += codegen-test.lisp EXTRA_DIST += lexer-test.lisp -## The system definition. -EXTRA_DIST += sod-test.asd.in -CLEANFILES += sod-test.asd -sod-test.asd: sod-test.asd.in Makefile - $(SUBST) $(srcdir)/sod-test.asd.in >$@.new $(SUBSTITUTIONS) && \ - mv $@.new $@ - ## Running the Lisp tests. -check-local: sod sod-test.asd - $(V_TEST)$(CL_LAUNCH) -l $(LISPSYS) -s sod-test +I \ - -i '(handler-case (asdf:test-system "sod") ;\ - (error (cond) ;\ - (format *error-output* "ERR: ~A~%" cond) ;\ - (cl-launch:quit 1)))' +check-local: sod sod.asd + $(V_TEST)$(ASDF_ENV) $(RUNLISP) -L$(WORKING_LISPS) -e \ + '(asdf:clear-configuration) ;\ + (handler-case (asdf:test-system "sod") ;\ + (error (cond) ;\ + (format *error-output* "ERR: ~A~%" cond) ;\ + (uiop:quit 1)))' + +###-------------------------------------------------------------------------- +### Manual pages. + +man_MANS += sod.1 sod-module.5 +CLEANFILES += sod.1 sod-module.5 +EXTRA_DIST += sod.1.in sod-module.5.in ###-------------------------------------------------------------------------- ### Installation. @@ -181,9 +177,10 @@ install-data-local: done; \ dots=$$(echo $$fwd | sed 's/[^ ][^ ]*/../g'); \ rel=$$(echo $$dots $$twd | tr " " "/"); \ - for i in sod.asd sod-frontend.asd; do \ + for i in sod.asd; do \ echo >&2 "CREATE $$to/$$i"; \ sed -e '/#|@-auto-@|#/ { r auto.lisp' -e ' d; }' \ + -e '/#|@-del-@|#/ d' \ -e '/#|@-path-@|#/ d' \ $(srcdir)/$$i.in >$(DESTDIR)$(pkglispsrcdir)/$$i.new; \ mv $(DESTDIR)$(pkglispsrcdir)/$$i.new \ @@ -198,4 +195,18 @@ uninstall-local: rm -f $(DESTDIR)$(pkglispsrcdir)/$$i $(DESTDIR)$(lispsysdir)/$$i; \ done +###-------------------------------------------------------------------------- +### Additional random things useful during development. + +## ASDF hacking for finding the system definitions. +EXTRA_DIST += asdf-hack.lisp.in +noinst_DATA += asdf-hack.lisp +asdf-hack.lisp: asdf-hack.lisp.in Makefile + $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \ + mv $@.new $@ +CLEANFILES += asdf-hack.lisp + +## Emacs hacking for indentation. +EXTRA_DIST += emacs-hacks.el + ###----- That's all, folks --------------------------------------------------