1 BUILT_SOURCES = chess-auto.el
2 CLEANFILES = TAGS chess-auto.el auto-autoloads.el
3 EXTRA_DIST = autogen.sh chess-auto.el.in chess-eco.pos doc/chess.pdf
4 DISTCLEANFILES = chess-eco.fen doc/chess.info doc/chess.pdf $(TESTS)
5 info_TEXINFOS = doc/chess.texi
6 dist_lisp_DATA = _pkg.el chess-eco.fen
57 chess-auto.el: $(ELFILES)
58 echo ";;; DO NOT MODIFY THIS FILE" > $(top_builddir)/chess-auto.el
59 echo "(if (featurep 'chess-auto) (error \"Already loaded\"))" \
60 >> $(top_builddir)/chess-auto.el
61 $(EMACS) -batch -L $(srcdir) -l chess-maint.el \
62 -f chess-generate-autoloads \
63 $(top_builddir)/chess-auto.el $(srcdir)
64 echo "(provide 'chess-auto)" >> $(top_builddir)/chess-auto.el
65 ln -f $(top_builddir)/chess-auto.el $(top_builddir)/auto-autoloads.el
67 chess-eco.fen: chess-eco.pos chess-eco.el
68 $(EMACS) --no-init-file --no-site-file -batch \
69 -L $(srcdir) -l chess-eco -f chess-generate-fen-table \
70 chess-eco.pos chess-eco.fen
73 DATABASE = $(shell test -r test/largedb.sg3 && echo test/largedb || echo test/historic.pgn)
74 START = $(shell test -r test/largedb.sg3 && perl -e 'print int(rand(4000000)), "\n";' || echo 1)
78 echo "$(EMACS) -batch -L $(srcdir) -l chess-test.el -f chess-test '$(DATABASE)' $(START) $(COUNT); rm -f $(top_builddir)/chess-test" > $@
81 TAGS: $(dist_lisp_LISP)
82 @etags $(dist_lisp_LISP)
85 # Makefile.am ends here