From: Peter Verthez Date: Thu, 10 Jan 2002 18:45:36 +0000 (+0000) Subject: Some Makefile enhancements for documentation. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=33ba39ee5fcff8327cb2a14b8826eb22a40c3be2;p=gedcom-parse.git Some Makefile enhancements for documentation. --- diff --git a/Makefile.am b/Makefile.am index fc28a10..031d2a3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,13 +14,10 @@ testgedcom_LDADD = @INTLLIBS@ EXTRA_DIST = $(pkgdata_DATA) VERSIONED_FILES = README +include $(top_srcdir)/Makefile.inc + dist-hook: - @cd $(distdir); \ - for file in $(VERSIONED_FILES); do \ - sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \ - rm $$file; \ - mv $$file.new $$file; \ - done + $(replace-VERSION) clean-local: rm -f testgedcom.out diff --git a/Makefile.inc b/Makefile.inc new file mode 100644 index 0000000..f86ad01 --- /dev/null +++ b/Makefile.inc @@ -0,0 +1,12 @@ +## File to include in other Makefile's, defining common commands +# $Id$ +# $Name$ + +define replace-VERSION + cd $(distdir); \ + for file in $(VERSIONED_FILES); do \ + sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \ + rm $$file; \ + mv $$file.new $$file; \ + done +endef diff --git a/configure.in b/configure.in index 6117f15..3a111a2 100644 --- a/configure.in +++ b/configure.in @@ -38,6 +38,7 @@ AC_OUTPUT(Makefile ansel/Makefile t/Makefile doc/Makefile + doc/images/Makefile include/Makefile intl/Makefile po/Makefile.in) diff --git a/doc/Makefile.am b/doc/Makefile.am index 550b6bf..7ce3c3f 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,16 +2,15 @@ # $Id$ # $Name$ -EXTRA_DIST = index.html usage.html parser.html interface.html links.html +SUBDIRS = images . +DOC_FILES = index.html usage.html parser.html interface.html links.html VERSIONED_FILES = index.html +EXTRA_DIST = $(DOC_FILES) +docdir = $(datadir)/doc/@PACKAGE@-@VERSION@ + +include $(top_srcdir)/Makefile.inc + +doc_DATA = $(DOC_FILES) dist-hook: - mkdir -p $(distdir)/images; - cp -p $(srcdir)/images/schema.obj $(srcdir)/images/schema.png \ - $(distdir)/images; - cd $(distdir); \ - for file in $(VERSIONED_FILES); do \ - sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \ - rm $$file; \ - mv $$file.new $$file; \ - done + $(replace-VERSION) diff --git a/doc/images/.cvsignore b/doc/images/.cvsignore new file mode 100644 index 0000000..70845e0 --- /dev/null +++ b/doc/images/.cvsignore @@ -0,0 +1 @@ +Makefile.in diff --git a/doc/images/Makefile.am b/doc/images/Makefile.am new file mode 100644 index 0000000..f3d0b38 --- /dev/null +++ b/doc/images/Makefile.am @@ -0,0 +1,12 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ + +DOC_FILES = schema.png +EXTRA_DIST = $(DOC_FILES) schema.obj +docdir = $(datadir)/doc/@PACKAGE@-@VERSION@/images + +doc_DATA = $(DOC_FILES) + + +