2 # project LilyPond -- the musical typesetter
3 # title generic make rules
6 # Copyright (c) 1997 by
7 # Jan Nieuwenhuizen <jan@digicash.com>
8 # Han-Wen Nienhuys <hanwen@stack.nl>
10 .PHONY
: all clean default
dist doc doc
++ dummy exe help lib
tags
15 for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i all; done
18 # dependency list of executable:
20 EXECUTABLE
= $(bindir)/$(NAME
)
21 $(EXECUTABLE
): $(OFILES
) $(CUSTOMLIBES
)
22 # $(STRIPDEBUG) $(STABLEOBS)
23 # $(LD_COMMAND) -o $@ $^ $(LOADLIBES)
24 $(LD_COMMAND
) $(OFILES
) $(LOADLIBES
)
25 touch
$(VERSION_DEPENDENCY
)
27 touch
$(build
) #waai necessary?
32 # dependency list of library:
34 LIBRARY
= $(libdir)/$(LIB_PREFIX
)$(NAME
)$(LIB_SUFFIX
)
35 $(LIBRARY
): $(OFILES
) $(CUSTOMLIBES
)
36 $(AR_COMMAND
) $(OFILES
)
37 touch
$(VERSION_DEPENDENCY
)
39 touch
$(build
) #waai necessary?
45 rm -f
$(allexe
) core
$(allobs
)
46 for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i clean; done
49 rm -rf
$(lily-version
) $(flower-version
) .b
$(build
) .GENERATE
*~
$(allout
)
58 # value of $(OSTYPE) on windhoos; "make $OSTYPE" if you use bash :-)
68 $(MAKE
) -C . CXX
="gcc-go32 -I/usr/i386-go32/include -I/usr/i386-go32/include/g++ -D_WIN32 -Dcaddr_t=char* -DMAP_SHARED=0"
75 @echo
" $(MAKE) ["VARIABLE
=value
" ...] [target]"
78 @echo
" all clean config dist distclean doc doc++"
79 @echo
" exe help lib moduledist tags"
80 @echo
" dos: xcomplile to dos"
81 @echo
" win32: native cygnus-win32 compile"
85 $(MAKE
) -C Documentation do-doc
87 # doc++ documentation of classes
89 doc
++ -kp
-d
$(DOCDIR
) $^
94 (cd .
/$(depth
); tar cfz
$(DIST_NAME
).
tar.gz
$(DIST_NAME
))
95 rm -rf
$(distdir
)/ # should be trapped
98 ln
$(DISTFILES
) $(distdir
)/$(localdir
)
99 for i in
$(SUBDIRS
); do mkdir
$(distdir
)/$(localdir
)/$$i; done
100 for i in
$(SUBDIRS
); do
$(MAKE
) localdir
=$(localdir
)/$$i -C
$$i localdist
; done
103 -mkdir
$(module-distdir
)
104 $(MAKE
) localmoduledist
105 (cd .
/$(depth
); tar cfz
$(MODULE_DIST_NAME
).
tar.gz
$(MODULE_DIST_NAME
))
106 rm -rf
$(module-distdir
)/ # should be trapped
109 ln
$(DISTFILES
) $(module-distdir
)/$(localdir
)
110 for i in
$(SUBDIRS
); do mkdir
$(module-distdir
)/$(localdir
)/$$i; done
111 for i in
$(SUBDIRS
); do
$(MAKE
) localdir
=$(localdir
)/$$i -C
$$i localmoduledist
; done
114 for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i all-tags
; done
121 check-flower-version
:
122 $(MAKE
) flower-version
-C .
/$(depth
)/flower
123 $(lily-version
): .
/$(depth
)/.version .
/$(bindir)/make_version
$(build
)
124 .
/$(bindir)/make_version
"$(MAJOR_VERSION)" "$(MINOR_VERSION)" "$(PATCH_LEVEL)" "$(MY_PATCH_LEVEL)" "$(BUILD)" "$(CXX) $(CXXVER)" > $@