X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=doc%2FMakefile.am;h=56d81e32fcd2e2494a94bd184133224f18bd0d02;hb=06436cecee71ec6ab585587d10f3979c20c0d2a4;hp=dc4c67c2203d14227b246c6ee167ef670ec5156a;hpb=0c2256670fc0822cc5a86bca754186c50f943a1c;p=meshlink diff --git a/doc/Makefile.am b/doc/Makefile.am index dc4c67c2..56d81e32 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,11 +2,11 @@ info_TEXINFOS = tinc.texi -man_MANS = tincd.8 tinc.conf.5 +man_MANS = -EXTRA_DIST = tincinclude.texi.in tincd.8.in tinc.conf.5.in sample-config.tar.gz +EXTRA_DIST = tincinclude.texi.in -CLEANFILES = *.html +CLEANFILES = *.html tincinclude.texi # Use `ginstall' in the definition of man_MANS to avoid # confusion with the `install' target. The install rule transforms `ginstall' @@ -16,8 +16,13 @@ transform = s/ginstall/install/; @program_transform_name@ # For additional rules usually of interest only to the maintainer, # see GNUmakefile and Makefile.maint. -texi2html: tinc.texi - texi2html -split=chapter tinc.texi +substitute = sed \ + -e s,'@PACKAGE\@',"$(PACKAGE)",g \ + -e s,'@VERSION\@',"$(VERSION)",g \ + -e s,'@sysconfdir\@',"$(sysconfdir)",g \ + -e s,'@localstatedir\@',"$(localstatedir)",g -%.html: $(man_MANS) - w3mman2html $< > $@ +tincinclude.texi: tincinclude.texi.in + $(substitute) $? > $@ + +tinc.texi: tincinclude.texi