OLD | NEW |
1 # -*-Makefile-*- | 1 # -*-Makefile-*- |
2 | 2 |
3 depth = . | 3 depth = . |
4 | 4 |
5 SUBDIRS = python scripts \ | 5 SUBDIRS = python scripts \ |
6 flower lily \ | 6 flower lily \ |
7 mf ly \ | 7 mf ly \ |
8 tex ps scm \ | 8 tex ps scm \ |
9 po \ | 9 po \ |
10 elisp vim \ | 10 elisp vim \ |
11 input \ | 11 input \ |
12 $(documentation-dir) | 12 $(documentation-dir) |
13 | 13 |
14 | 14 |
15 ## this convoluted construction is necessary, since we don't know the | 15 ## this convoluted construction is necessary, since we don't know the |
16 ## value of DOCUMENTATION here. | 16 ## value of DOCUMENTATION here. |
17 documentation-dir=$(if $(findstring no,$(DOCUMENTATION)),,Documentation) | 17 documentation-dir=$(if $(findstring no,$(DOCUMENTATION)),,Documentation) |
18 | 18 |
19 SCRIPTS = configure autogen.sh smart-autogen.sh smart-configure.sh | 19 SCRIPTS = configure autogen.sh smart-autogen.sh smart-configure.sh |
20 README_FILES = COPYING COPYING.FDL DEDICATION ROADMAP HACKING \ | 20 README_FILES = COPYING COPYING.FDL DEDICATION ROADMAP HACKING \ |
21 LICENSE LICENSE.DOCUMENTATION | 21 LICENSE LICENSE.DOCUMENTATION |
22 TOPDOC_FILES = AUTHORS INSTALL README NEWS | 22 TOPDOC_FILES = AUTHORS INSTALL README NEWS |
23 TOPDOC_TXT_FILES = $(addprefix $(top-build-dir)/Documentation/topdocs/$(outdir)/
,$(addsuffix .txt,$(TOPDOC_FILES))) | 23 TOPDOC_TXT_FILES = $(addprefix $(top-build-dir)/Documentation/topdocs/$(outdir)/
,$(addsuffix .txt,$(TOPDOC_FILES))) |
24 IN_FILES := $(call src-wildcard,*.in) | 24 IN_FILES := $(call src-wildcard,*.in) |
25 | 25 |
26 RELEASE_FILES = ChangeLog RELEASE-COMMIT | 26 RELEASE_FILES = RELEASE-COMMIT |
27 RELEASE_OUT_FILES = $(RELEASE_FILES:%=$(outdir)/%) | 27 RELEASE_OUT_FILES = $(RELEASE_FILES:%=$(outdir)/%) |
28 OUT_DIST_FILES += $(RELEASE_OUT_FILES) | 28 OUT_DIST_FILES += $(RELEASE_OUT_FILES) |
29 INSTALLATION_DIR=$(local_lilypond_datadir) | 29 INSTALLATION_DIR=$(local_lilypond_datadir) |
30 INSTALLATION_FILES=$(config_make) VERSION | 30 INSTALLATION_FILES=$(config_make) VERSION |
31 GENERATED_BUILD_FILES=configure aclocal.m4 autogen.sh | 31 GENERATED_BUILD_FILES=configure aclocal.m4 autogen.sh |
32 # bootstrap stepmake: | 32 # bootstrap stepmake: |
33 # | 33 # |
34 STEPMAKE_TEMPLATES=toplevel po install | 34 STEPMAKE_TEMPLATES=toplevel po install |
35 LOCALSTEPMAKE_TEMPLATES=lilypond | 35 LOCALSTEPMAKE_TEMPLATES=lilypond |
36 | 36 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 local-clean-filelist: | 71 local-clean-filelist: |
72 endif | 72 endif |
73 | 73 |
74 all: $(outdir)/VERSION | 74 all: $(outdir)/VERSION |
75 | 75 |
76 $(outdir)/VERSION: $(config_make) VERSION | 76 $(outdir)/VERSION: $(config_make) VERSION |
77 $(call ly_progress,Making,$@,) | 77 $(call ly_progress,Making,$@,) |
78 -mkdir -p $(outdir) | 78 -mkdir -p $(outdir) |
79 echo $(TOPLEVEL_VERSION) > $@ | 79 echo $(TOPLEVEL_VERSION) > $@ |
80 | 80 |
81 $(outdir)/ChangeLog: $(outdir)/VERSION | 81 $(outdir)/RELEASE-COMMIT: |
82 » $(call ly_progress,Making,$@,) | |
83 » @echo 'See http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=log;h=re
fs/tags/release/$(TOPLEVEL_VERSION)-1' > $@ | |
84 | |
85 $(outdir)/RELEASE-COMMIT: # FIXME: any file in $(top-src-dir)/.git/ we can depen
d on and be sure RELEASE-COMMIT is up to date? | |
86 $(call ly_progress,Making,$@,) | 82 $(call ly_progress,Making,$@,) |
87 git --git-dir=$(top-src-dir)/.git show HEAD | head -100 > $@ | 83 git --git-dir=$(top-src-dir)/.git show HEAD | head -100 > $@ |
88 | 84 |
89 # junk me as soon as RELEASE-COMMIT FIXME: has been addressed | |
90 refresh-release-files: | 85 refresh-release-files: |
91 test -d $(top-src-dir)/.git && rm -f $(RELEASE_OUT_FILES) | 86 test -d $(top-src-dir)/.git && rm -f $(RELEASE_OUT_FILES) |
92 $(MAKE) $(RELEASE_OUT_FILES) | 87 $(MAKE) $(RELEASE_OUT_FILES) |
93 | 88 |
94 python-modules: | 89 python-modules: |
95 $(MAKE) -C scripts/build | 90 $(MAKE) -C scripts/build |
96 $(MAKE) -C python | 91 $(MAKE) -C python |
97 | 92 |
98 top-doc: python-modules | 93 top-doc: python-modules |
99 | 94 |
100 local-clean: local-clean-ChangeLog local-clean-filelist | 95 local-clean: local-clean-filelist |
101 | |
102 local-clean-ChangeLog: | |
103 » rm -f ChangeLog | |
104 | 96 |
105 info: | 97 info: |
106 $(foreach d, $(INFO_DIRECTORIES),$(MAKE) -C $(d) out=www info && ) true | 98 $(foreach d, $(INFO_DIRECTORIES),$(MAKE) -C $(d) out=www info && ) true |
107 | 99 |
108 install-info: info | 100 install-info: info |
109 $(MAKE) out=www COPY_INFO_IMAGES=1 install-info-WWW | 101 $(MAKE) out=www COPY_INFO_IMAGES=1 install-info-WWW |
110 | 102 |
111 install-help2man: | 103 install-help2man: |
112 $(MAKE) -C scripts man install-help2man | 104 $(MAKE) -C scripts man install-help2man |
113 $(MAKE) -C lily man install-help2man | 105 $(MAKE) -C lily man install-help2man |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 tree-bin = $(tree-prefix)/bin | 180 tree-bin = $(tree-prefix)/bin |
189 tree-lib = $(tree-prefix)/lib | 181 tree-lib = $(tree-prefix)/lib |
190 tree-share = $(tree-prefix)/share | 182 tree-share = $(tree-prefix)/share |
191 | 183 |
192 # Don't put version numbers here. During development | 184 # Don't put version numbers here. During development |
193 # they make no sense, and cause EPS files to become invalid. | 185 # they make no sense, and cause EPS files to become invalid. |
194 | 186 |
195 tree-share-prefix = $(tree-share)/lilypond/current | 187 tree-share-prefix = $(tree-share)/lilypond/current |
196 tree-lib-prefix = $(tree-lib)/lilypond/current | 188 tree-lib-prefix = $(tree-lib)/lilypond/current |
197 | 189 |
198 C_DIRS = flower lily | |
199 c-clean: | |
200 $(foreach i, $(C_DIRS), $(MAKE) -C $(i) clean &&) true | |
201 | |
202 src-ext = c cc yy ll hh icc py scm tex ps texi itexi tely itely sh | 190 src-ext = c cc yy ll hh icc py scm tex ps texi itexi tely itely sh |
203 | 191 |
204 doc-clean: snippets-clean $(tree-share-prefix)/lilypond-force | 192 doc-clean: snippets-clean $(tree-share-prefix)/lilypond-force |
205 | 193 |
206 default: $(config_h) build-dir-setup build-scripts | 194 default: $(config_h) build-dir-setup build-scripts |
207 | 195 |
208 build-dir-setup: $(tree-share-prefix)/lilypond-force | 196 build-dir-setup: $(tree-share-prefix)/lilypond-force |
209 | 197 |
210 build-scripts: | 198 build-scripts: |
211 $(MAKE) -C scripts/build | 199 $(MAKE) -C scripts/build |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 403 |
416 test-snippets-clean: | 404 test-snippets-clean: |
417 rm -rf out/lybook-testdb | 405 rm -rf out/lybook-testdb |
418 | 406 |
419 # we want this separate for security; see CG 4.2. -gp | 407 # we want this separate for security; see CG 4.2. -gp |
420 website: | 408 website: |
421 $(MAKE) config_make=$(config_make) \ | 409 $(MAKE) config_make=$(config_make) \ |
422 top-src-dir=$(top-src-dir) \ | 410 top-src-dir=$(top-src-dir) \ |
423 -f $(top-src-dir)/make/website.make \ | 411 -f $(top-src-dir)/make/website.make \ |
424 website | 412 website |
OLD | NEW |