[lwatch-cvs] files/doc Makefile.am,1.12,1.13
Brought to you by:
arturcz
|
From: <ar...@us...> - 2003-03-15 18:44:39
|
Update of /cvsroot/lwatch/files/doc In directory sc8-pr-cvs1:/tmp/cvs-serv9199/doc Modified Files: Makefile.am Log Message: - any sufficiently advanced technology is indistinguishable from magic; a new manual rebuilding logic is really magic, for me too Index: Makefile.am =================================================================== RCS file: /cvsroot/lwatch/files/doc/Makefile.am,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Makefile.am 15 Mar 2003 14:47:27 -0000 1.12 --- Makefile.am 15 Mar 2003 18:44:36 -0000 1.13 *************** *** 1,5 **** ! if DISTRO ! man_MANS = lwatch.1 ! endif dist_man_MANS = @DISTMAN@ EXTRA_DIST = lwatch.sgml conf.ent.in --- 1,3 ---- ! man_MANS = @DOCMAN@ dist_man_MANS = @DISTMAN@ EXTRA_DIST = lwatch.sgml conf.ent.in *************** *** 8,11 **** --- 6,16 ---- if MAKE_MAN if DISTRO + ## this is called when run from tarball, build manual from prepared earlier + ## lwatch.1.in file + lwatch.1: lwatch.1.in Makefile + sed "s#@CONFDIR\@#$(sysconfdir)#g" < lwatch.1.in > lwatch.1 + else + ## this is called when run from CVS, prepare conf.ent from conf.ent.in + ## and next lwatch.1 lwatch.1: lwatch.sgml conf.ent $(dbook2man) lwatch.sgml > lwatch.1 *************** *** 13,17 **** --- 18,26 ---- conf.ent: conf.ent.in Makefile sed "s#@CONFDIR\@#$(sysconfdir)#g" < conf.ent.in > conf.ent + endif else + ## yep, configure run with --disable-manual + if HAVE_D2M + ## we have a sgml tool, let's prepare a stub for manual lwatch.1.in: lwatch.sgml conf.ent $(dbook2man) lwatch.sgml > lwatch.1.in *************** *** 19,25 **** conf.ent: conf.ent.in cp conf.ent.in conf.ent endif - ##else - ##lwatch.1: lwatch.1.in Makefile - ## sed "s#@CONFDIR\@#$(sysconfdir)#g" < lwatch.1.in > lwatch.1 - ##endif --- 28,42 ---- conf.ent: conf.ent.in cp conf.ent.in conf.ent + else + ## oops, where is docbook-to-man? + dist-hook: + $(error Cannot prepare package, there is no docbook-to-man converter) + endif + endif + + if DISTRO + if MAKE_MAN + else + endif + else endif |