Re: [AD] doc building patterns (was: Release Candidate 3) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Allegro conductors <conductors@xxxxxxxxxx>
- Subject: Re: [AD] doc building patterns (was: Release Candidate 3)
- From: Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx>
- Date: Fri, 7 Dec 2001 22:08:23 +0100
On Thu, Dec 06, 2001 at 01:45:31PM +1100, Peter Wang wrote:
> Finally, I found out yesterday that the new Unix makefile doesn't work
> with BSD make. It doesn't understand the doc building patterns. I
> don't know how to fix that.
I presume BSD dislikes $(filter), which surely is some sort of GNU
extension. The following seems to work ok for me.
Index: makefile.in
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.in,v
retrieving revision 1.21
diff -u -r1.21 makefile.in
--- makefile.in 2001/12/03 13:34:27 1.21
+++ makefile.in 2001/12/07 21:02:54
@@ -206,19 +206,19 @@
MAKEDOC = docs/makedoc$(EXE)
-$(filter %.txt,$(DOCS)): docs/txt/%.txt: docs/src/%._tx $(MAKEDOC)
+docs/txt/%.txt: docs/src/%._tx $(MAKEDOC)
$(MAKEDOC) -ascii $@ $<
-$(filter %.rtf,$(DOCS)): docs/rtf/%.rtf: docs/src/%._tx $(MAKEDOC)
+docs/rtf/%.rtf: docs/src/%._tx $(MAKEDOC)
$(MAKEDOC) -rtf $@ $<
-$(filter %.texi,$(DOCS)): docs/texi/%.texi: docs/src/%._tx $(MAKEDOC)
+docs/texi/%.texi: docs/src/%._tx $(MAKEDOC)
$(MAKEDOC) -texi $@ $<
-$(filter %.info,$(DOCS)): docs/info/%.info: docs/texi/%.texi $(MAKEDOC)
+docs/info/%.info: docs/texi/%.texi $(MAKEDOC)
$(MAKEINFO) -o $@ $<
-$(filter %.html,$(DOCS)): docs/html/%.html: docs/src/%._tx $(MAKEDOC)
+docs/html/%.html: docs/src/%._tx $(MAKEDOC)
$(MAKEDOC) -html $@ $<
docs/man/install_allegro.3: docs/src/allegro._tx $(MAKEDOC)
--
Grzegorz Adam Hankiewicz gradha@xxxxxxxxxx http://gradha.infierno.org/