flower-1.0.2
[lilypond.git] / Makefile
blob71217f39b1a7372959c5a139282987d99e5fc991
1 MAJVER=0
2 MINVER=0
3 PATCHLEVEL=2
5 #
8 include Sources.make
9 progdocs=$(hdr) $(mycc)
10 gencc=parser.cc lexer.cc
11 cc=$(mycc) $(gencc)
12 obs=$(cc:.cc=.o)
15 #dist
17 DOCDIR=docdir
18 VERSION=$(MAJVER).$(MINVER).$(PATCHLEVEL)
19 PACKAGENAME=lilypond
20 DNAME=$(PACKAGENAME)-$(VERSION)
21 othersrc=lexer.l parser.y
22 SCRIPTS=make_version make_patch
23 IFILES= symbol.ini suzan.ly lilyponddefs.tex test.tex .dstreamrc
24 OFILES=Makefile Sources.make depend
25 DFILES=$(hdr) $(mycc) $(othersrc) $(OFILES) $(IFILES) $(SCRIPTS)
27 #compiling
28 LOADLIBES=-L$(FLOWERDIR) -lflower
29 FLOWERDIR=../flower
30 CXXFLAGS=-I$(FLOWERDIR) -pipe -Wall -g
32 exe=$(PACKAGENAME)
36 $(exe): $(obs)
37 $(CXX) -o $(exe) $(obs) $(LOADLIBES)
38 clean:
39 rm -f $(exe) *.o $(DOCDIR)/* core
41 realclean: clean
42 rm -f TAGS depend
44 all: kompijl doc
46 # doc++ documentation of classes
47 doc:
48 -mkdir $(DOCDIR)
49 doc++ -p -I -d $(DOCDIR) $(progdocs)
51 back:
52 zip -u ~/backs/spacer *cc *hh
54 depend: Sources.make
55 $(CXX) $(CXXFLAGS) -MM $(cc) > depend
57 include depend
59 parser.cc: parser.y
60 bison -d $<
61 mv parser.tab.h parser.hh
62 mv parser.tab.c parser.cc
64 parser.hh: parser.cc
66 version.o: $(obs) version.hh
68 version.hh: Makefile make_version
69 make_version $(MAJVER) $(MINVER) $(PATCHLEVEL) > version.hh
71 lexer.cc: lexer.l
72 flex -+ -t lexer.l > lexer.cc
74 DDIR=$(DNAME)
75 dist:
76 -mkdir $(DDIR)
77 ln $(DFILES) $(DDIR)/
78 tar cfz $(DNAME).tar.gz $(DDIR)/*
79 rm -rf $(DDIR)/
82 TAGS: $(mycc) $(hdr) Sources.make
83 etags -CT $(mycc) $(hdr)