Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2002 16:40:03 -0700 (PDT)
From:      Greg Shenaut <greg@bogslab.ucdavis.edu>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/37995: lilypond port will not build due to bison/make-rule interaction 
Message-ID:  <200205122340.g4CNe3T80989@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/37995; it has been noted by GNATS.

From: Greg Shenaut <greg@bogslab.ucdavis.edu>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports@FreeBSD.org
Cc:  
Subject: Re: ports/37995: lilypond port will not build due to bison/make-rule interaction 
Date: Sun, 12 May 2002 16:38:11 -0700

 Here are some c*-rules.make files that seem to work, but see below for
 an additional problem with this port...
 
 -----------c++-rules.make--------------
 # title	   C++ rules
 # file	   make/C++_rules.make
 
 .SUFFIXES: .cc .o .hh .yy .ll  .dep
 
 # compile rules:
 #
 $(outdir)/%.o: %.cc
 	$(DO_CXX_COMPILE)
 
 $(outdir)/%.o: $(outdir)/%.cc
 	$(DO_CXX_COMPILE)
 
 $(outdir)/%.cc: %.yy
 	$(BISON) $<
 	mv parser.tab.cc $@
 #	mv $<.tab.c $@
 
 $(outdir)/%.hh: %.yy
 	$(BISON) -d $<
 	mv parser.tab.hh $@
 	rm parser.tab.cc
 #	mv $<.tab.h $@
 #	rm $<.tab.c		# if this happens in the wrong order it triggers recompile of the .cc file 
 
 $(outdir)/%.cc: %.ll
 	$(FLEX) -Cfe -p -p -t $< > $@
 -------------c-rules.make-----------------
 # stepmake/C_rules.make
 
 .SUFFIXES: .c .o .h .y .l .dep
 
 $(outdir)/%.o: %.c
 	$(DO_C_COMPILE)
 
 $(outdir)/%.o: $(outdir)/%.c
 	$(DO_C_COMPILE)
 
 $(outdir)/%.c: %.y
 	$(BISON) $<
 #	mv $<.tab.c $@
 	mv parser.tab.c $@
 
 $(outdir)/%.h: %.y
 	$(BISON) -d $<
 #	mv $<.tab.h $@
 	mv parser.tab.h $@
 	mv parser.tab.c $(basename $@).c
 
 $(outdir)/%.c: %.l
 	$(FLEX) -Cfe -p -p -t $< > $@
 # could be faster:
 #	$(FLEX) -8 -Cf -t $< > $@
 ------------------end of rules files------------
 
 Using the above c*-rules.make files, I no longer get errors from
 bison, but I now get the following error, which is really confusing:
 
   gmake[1]: Entering directory `/usr/ports/print/lilypond/work/lilypond-1.3.131/mf'
   mf "\mode:=laserjet; nonstopmode; input feta-braces11.mf;"
   This is METAFONT, Version 2.718 (Web2C 7.2)
   I can't find the base file `mf.base'!
   gmake[1]: *** [out/feta-braces11.tfm] Error 1
 
 Greg Shenaut

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205122340.g4CNe3T80989>