# this is supposed to clear all suffixes:
.SUFFIXES:
+
# so why does make still consider xx.y : RCS/xx.y,v ?
# there is no suffix ,v anymore!
-.SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
+.SUFFIXES: .cc .o .hh .y .l .pod .text .1 .dep .html
-# cancel implicit rules:
-#
-# shit, how to get rid of these stupid built-in rules?
-# include ./$(depth)/make/Builtin-rules.make
-#
# compile rules:
#
$(outdir)/%.cc: %.l
$(FLEX) -Cfe -p -p -t $< > $@
+# could be faster:
+# $(FLEX) -8 -Cf -t $< > $@
$(outdir)/%.text: $(outdir)/%.1
groff -man -Tascii $< > $@
$(depth)/%.text: $(outdir)/%.text
cp $< $@
+$(outdir)/%.html: %.pod
+ $(pod2html) $<
+ mv $(notdir $@) $(outdir)/
+
$(outdir)/%.5: %.pod
$(pod2groff)
$(outdir)/%.1: %.pod
# build and config stuff: (could make this generic default rule...)
#
%/.build:
- echo 0 >$@
+ echo 0 > $@
+
+
+$(depth)/%.text: check-doc-deps
+ rm -f $@
+ ln `find ${depth}/Documentation -name $@|head -1` .