From: fred Date: Fri, 6 Dec 1996 22:33:22 +0000 (+0000) Subject: lilypond-0.0.15 X-Git-Tag: release/1.5.59~6643 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=077c16c397725c119347df270159bd1bd3051b88;p=lilypond.git lilypond-0.0.15 --- diff --git a/Makefile b/Makefile index 9b1b762a3a..219147706d 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ $(exe): $(obs) $(CXX) -o $@ $^ $(LOADLIBES) clean: - $(MAKE) -C objects clean - rm -f $(exe) *.o $(DOCDIR)/* core +# $(MAKE) -C objects clean + rm -f $(exe) objects/*.o $(DOCDIR)/* core distclean: clean rm -f depend version.hh $(gencc) .GENERATE *~ @@ -37,9 +37,18 @@ realdepend: $(cc) include depend +parsheadorig=$(CCDIR)/parser.tab.h +parsheadnew=$(HEADERDIR)/parser.hh + +# +# take some trouble to avoid overwriting the old y.tab.h $(CCDIR)/parser.cc: parser.y $(BISON) -d $< - mv $(CCDIR)/parser.tab.h $(HEADERDIR)/parser.hh + (if diff -q $(parsheadorig) $(parsheadnew); then \ + echo leaving $(parsheadnew); \ + else \ + mv $(parsheadorig) $(parsheadnew); \ + fi ) mv $(CCDIR)/parser.tab.c $@ parser.hh: parser.cc