From 077c16c397725c119347df270159bd1bd3051b88 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 6 Dec 1996 22:33:22 +0000 Subject: [PATCH] lilypond-0.0.15 --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 -- 2.39.5