###----- 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
$(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
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.
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 \
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 --------------------------------------------------