# 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 .dep
-# cancel implicit rules:
-#
-# shit, how to get rid of these stupid built-in rules?
-# include ./$(depth)/make/Builtin-rules.make
-#
# compile rules:
#
$(DO_CXX_COMPILE)
$(outdir)/%.cc: %.y
-# $(BISON) -d $<
$(BISON) $<
-# mv $(shell basename $@ .cc ).tab.h $(include-lib)/$(shell basename $@ .cc).hh
-# mv $(shell basename $@ .cc ).tab.h $(outdir)/$(shell basename $@ .cc).hh
mv $(shell basename $@ .cc ).tab.c $@
$(outdir)/%.hh: %.y
mv $(shell basename $@ .hh ).tab.c $(outdir)/$(shell basename $@ .hh).cc
$(outdir)/%.cc: %.l
- $(FLEX) -t $< > $@
-
-$(outdir)/%.text: $(outdir)/%.1
- groff -man -Tascii $< > $@
-
-$(depth)/%.text: $(outdir)/%.text
- cp $< $@
-
-$(outdir)/%.1: %.pod
- pod2man --center="LilyPond documentation" --section="0"\
- --release="LilyPond $(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)" $< > $@
-#
+ $(FLEX) -Cfe -p -p -t $< > $@
+# could be faster:
+# $(FLEX) -8 -Cf -t $< > $@
# outdirs:
#
# build and config stuff: (could make this generic default rule...)
#
%/.build:
- echo 0 >$@
+ echo 0 > $@
-# specific stuff:
-#
-$(LIBFLOWER): check-flower-deps
-
-check-flower-deps:
- $(MAKE) -C $(depth)/flower/ $(outdir)/$(notdir $(LIBFLOWER))
-
-check-lily-deps: check-flower-deps
- $(MAKE) -C $(depth)/lib
-
-check-doc-deps:
- $(MAKE) -C $(depth)/Documentation
-
-$(LIBLILY): dummy
- $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
-#
-
+$(depth)/%.text: check-doc-deps
+ rm -f $@
+ ln `find ${depth}/Documentation -name $@|head -1` .