lilypond-0.0.39
[lilypond.git] / Makefile
blobc990a7246c1356fc06293bb228f6c8deaa094539
1 # Makefile
2 # top level makefile of LilyPond
4 include Variables.make
6 .SUFFIXES:
7 .SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
10 $(exe): $(obs)
11 $(STRIPDEBUG) $(STABLEOBS)
12 $(LINKER) -o $@ $^ $(LOADLIBES)
14 $(m2m): $(m2mobs)
15 $(LINKER) -o $@ $^ $(LOADLIBES)
17 .PHONY: clean docxx
19 clean:
20 rm -f $(allexe) $(DOCDIR)/* core $(allobs)
21 for SUBDIR in $(SUBDIRS); \
22 do \
23 $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR clean;\
24 done
26 distclean: clean
27 rm -f version.hh $(gencc) .GENERATE *~ $(ALLDEPS)
29 all: $(exe) $(m2m) doc
31 # value of $(OSTYPE) on windhoos; "make $OSTYPE" if you use bash :-)
32 win32:
33 $(MAKE) -C . CXX=g++
35 doc:
36 $(MAKE) -C Documentation doc
38 # doc++ documentation of classes
39 docxx: $(progdocs)
40 doc++ -kp -d $(DOCDIR) $^
43 include $(DEPDIR)/*.dep
45 $(OBJECTDIR)/%.o: $(CCDIR)/%.cc
46 $(DODEP)\
47 $(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION)
49 $(OBJECTDIR)/version.o: $(obs) $(HEADERDIR)/version.hh
51 include Generate.make
53 dist:
54 -mkdir $(DDIR)
55 ln $(DFILES) $(DDIR)/
56 for SUBDIR in $(SUBDIRS); \
57 do mkdir $(DDIR)/$$SUBDIR; \
58 $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR dist;\
59 done
60 tar cfz $(DNAME).tar.gz $(DNAME)/
61 rm -rf $(DDIR)/
63 TAGS:
64 $(MAKE) -C $(HEADERDIR) TAGS
65 $(MAKE) -C $(CCDIR) TAGS