From 371f20e6315715c9af3df3ef7dbbe8db46dd6347 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 18 Apr 2011 19:25:28 +0200 Subject: Documentation Makefile overhaul. * Add documentation input and output files to distribution tarballs. * Use a more generic rule to generate man pages instead of the hardcoded "calcurse.1" target. Signed-off-by: Lukas Fleischer --- doc/Makefile.am | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'doc/Makefile.am') diff --git a/doc/Makefile.am b/doc/Makefile.am index 2f5edb4..f1a595e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -9,10 +9,18 @@ A2X_ARGS = \ -d manpage \ -f manpage -doc_DATA = \ +dist_doc_DATA = \ manual.html -man_MANS = \ +dist_man_MANS = \ + calcurse.1 + +EXTRA_DIST = \ + manual.txt \ + calcurse.1.txt + +CLEANFILES = \ + manual.html \ calcurse.1 docdir = $(datadir)/doc/$(PACKAGE) @@ -22,7 +30,7 @@ if HAVE_ASCIIDOC $(AM_V_GEN) $(ASCIIDOC) $(ASCIIDOC_ARGS) $< endif -calcurse.1: calcurse.1.txt +%.1: %.1.txt if HAVE_A2X $(AM_V_GEN) $(A2X) $(A2X_ARGS) $< endif -- cgit v1.2.3