lilypond-0.0.32
[lilypond.git] / Makefile
blobf34bcbc4ca1bef03a86f49fdd06884169fec1896
1 include Variables.make
3 .SUFFIXES:
4 .SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
7 $(exe): $(obs)
8 $(STRIPDEBUG) $(STABLEOBS)
9 $(LINKER) -o $@ $^ $(LOADLIBES)
12 .PHONY: clean docxx
14 clean:
15 rm -f $(exe) $(DOCDIR)/* core $(obs) $(ALLDEPS)
16 for SUBDIR in $(SUBDIRS); \
17 do \
18 $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR clean;\
19 done
21 distclean: clean
22 rm -f version.hh $(gencc) .GENERATE *~ $(ALLDEPS)
24 all: kompijl doc
26 win32: # value of $(OSTYPE) on windhoos; "make $OSTYPE" if u use bash :-)
27 $(MAKE) -C . CXX=g++
29 doc:
30 $(MAKE) -C Documentation doc
32 # doc++ documentation of classes
33 docxx: $(progdocs)
34 doc++ -kp -d $(DOCDIR) $^
36 $(OBJECTDIR)/%.o: $(CCDIR)/%.cc
37 $(DODEP)\
38 $(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION)
41 include $(DEPDIR)/*.dep
43 $(OBJECTDIR)/version.o: $(obs) $(HEADERDIR)/version.hh
45 include Generate.make
47 dist:
48 -mkdir $(DDIR)
49 ln $(DFILES) $(DDIR)/
50 for SUBDIR in $(SUBDIRS); \
51 do mkdir $(DDIR)/$$SUBDIR; \
52 $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR dist;\
53 done
54 tar cfz $(DNAME).tar.gz $(DNAME)/
55 rm -rf $(DDIR)/
57 TAGS:
58 $(MAKE) -C $(HEADERDIR) TAGS
59 $(MAKE) -C $(CCDIR) TAGS