[cvs] bogofilter/doc Makefile.am,1.8,1.9
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2003-02-10 01:40:55
|
Update of /cvsroot/bogofilter/bogofilter/doc In directory sc8-pr-cvs1:/tmp/cvs-serv5002/doc Modified Files: Makefile.am Log Message: Heavy magic to work around broken BSD make VPATH builds. (FreeBSD 4.7) Index: Makefile.am =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/doc/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile.am 10 Feb 2003 00:45:46 -0000 1.8 +++ Makefile.am 10 Feb 2003 01:40:44 -0000 1.9 @@ -1,7 +1,7 @@ # $Id$ # Tell BSD make(1) to not remake the .1in and .htmlin files. -.PRECIOUS: +SUFFIXES= .1 .1in .htmlin .html # what to build man_MANS = bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 @@ -31,7 +31,13 @@ || { rm -f $@ ; exit 1 ; } .xml.htmlin: - if xmlto html-nochunks $< ; then f=$@ ; mv $${f%%in} $@ ; else rm -f $@ ; exit 1 ; fi + if test -f $(srcdir)/$@ && test $(srcdir)/$@ -nt $< ; then \ + cp $(srcdir)/$@ . ; else \ + if xmlto html-nochunks $< ; then f=$@ ; mv $${f%%in} $@ ; else rm -f $@ ; exit 1 ; fi \ + fi .xml.1in: - if xmlto man $< ; then f=$@ ; mv $${f%in} $@ ; else rm -f $@ ; exit 1 ; fi + if test -f $(srcdir)/$@ && test $(srcdir)/$@ -nt $< ; then \ + cp $(srcdir)/$@ . ; else \ + if xmlto man $< ; then f=$@ ; mv $${f%in} $@ ; else rm -f $@ ; exit 1 ; fi \ + fi |