summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-29 02:42:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-29 02:42:58 -0400
commit7e5230b8ffe32cfe7c1ec31d37c40684893aa787 (patch)
tree182101ebdd0429321339ca54a49aae0f559a5fe2 /Makefile.am
parent9cd4c61d4ddbe87f461e402c754ea37782674bfd (diff)
Changed to using an autoconf/automake setup for building. This precipitated
many changes to the code, including: - documentation has been moved into doc/ - the chess-eco opening moves are pre-generated from chess-eco.ps into chess-eco.fen, so users don't have to wait around for it to build - no longer using lispdoc to auto-gen function stubs in chess.texi, this means that chess-maint.el and lispdoc.el are gone
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am78
1 files changed, 78 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..035bc18
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,78 @@
+BUILT_SOURCES = chess-auto.el
+CLEANFILES = TAGS chess-auto.el auto-autoloads.el
+EXTRA_DIST = autogen.sh doc/chess.pdf
+DISTCLEANFILES = chess-eco.fen doc/chess.info doc/chess.pdf
+info_TEXINFOS = doc/chess.texi
+lisp_DATA = _pkg.el chess-eco.fen
+
+dist_lisp_LISP = \
+ chess.el \
+ chess-ai.el \
+ chess-algebraic.el \
+ chess-announce.el \
+ chess-auto.el \
+ chess-autosave.el \
+ chess-chat.el \
+ chess-clock.el \
+ chess-common.el \
+ chess-crafty.el \
+ chess-database.el \
+ chess-display.el \
+ chess-engine.el \
+ chess-epd.el \
+ chess-fen.el \
+ chess-file.el \
+ chess-game.el \
+ chess-german.el \
+ chess-gnuchess.el \
+ chess-ics.el \
+ chess-ics1.el \
+ chess-images.el \
+ chess-input.el \
+ chess-irc.el \
+ chess-kibitz.el \
+ chess-link.el \
+ chess-log.el \
+ chess-message.el \
+ chess-module.el \
+ chess-network.el \
+ chess-none.el \
+ chess-pgn.el \
+ chess-phalanx.el \
+ chess-plain.el \
+ chess-ply.el \
+ chess-pos.el \
+ chess-puzzle.el \
+ chess-random.el \
+ chess-scid.el \
+ chess-sjeng.el \
+ chess-sound.el \
+ chess-transport.el \
+ chess-tutorial.el \
+ chess-ucb.el \
+ chess-var.el \
+ chess-eco.el
+
+chess-auto.el: $(ELFILES) chess-auto.el.in
+ cp -p $(srcdir)/chess-auto.el.in $@
+ -rm $(top_builddir)/chess-auto.elc
+ $(EMACS) --no-init-file --no-site-file -batch \
+ -L $(top_builddir) -l chess-auto -f generate-autoloads \
+ $(top_builddir)/chess-auto.el $(srcdir)
+
+chess-eco.fen: chess-eco.pos chess-eco.el
+ $(EMACS) --no-init-file --no-site-file -batch \
+ -L $(srcdir) -l chess-eco -f chess-generate-fen-table \
+ chess-eco.pos chess-eco.fen
+
+TESTS = chess-test
+
+chess-test:
+ echo "$(EMACS) -batch -L . -l chess-test.el --eval '(chess-test)'" > $@
+ chmod u+x $@
+
+TAGS: $(dist_lisp_LISP)
+ @etags $(dist_lisp_LISP)
+ @echo TAGS rebuilt.
+
+# Makefile.am ends here