~ubuntu-branches/ubuntu/saucy/solfege/saucy

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Tom Cato Amundsen
  • Date: 2011-04-10 11:04:33 UTC
  • mto: (1.1.13 upstream) (2.1.12 sid)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20110410110433-tzlbk1y99xzjixdu
ImportĀ upstreamĀ versionĀ 3.19.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
TARGETS += AUTHORS INSTALL README FAQ INSTALL.win32
66
66
installfiles += ui.xml help-menu.xml
67
67
 
68
 
.PHONY: all
 
68
.PHONY: all genfiles genlyfiles
 
69
 
 
70
# We have this as the default makefile target, because we want the
 
71
# generated .ly files to be present before running make with the
 
72
# all target to build the images
 
73
genfiles: genlyfiles
 
74
        $(MAKE) all
 
75
 
69
76
all:
70
77
 
71
78
SUBDIRS := po feta solfege test tools topdocs graphics help exercises hash-bug-workaround hash-bug-workaround2
106
113
solfege.1: solfege.1.txt solfege/_version.py
107
114
        LANGUAGE=C $(PYTHON) -c "import tools.buildutil; tools.buildutil.create_manpage()" | txt2man -t Solfege -s 1 > $@
108
115
 
109
 
# Unfortunately we still have to manually convert from html to pdf
110
 
# using openoffice and "Save as PDF"
111
 
prepare-rsync-manual: $(foreach lang,$(USER_MANUAL_LANGUAGES),help/$(lang)/one-big-page.html) help/C/one-big-page.html
 
116
rsync-manual: $(foreach lang,$(USER_MANUAL_LANGUAGES),help/$(lang)/one-big-page.html) help/C/one-big-page.html
112
117
        rm -rf tmp-build
113
118
        make prefix=`pwd`/tmp-build
114
119
        make prefix=`pwd`/tmp-build install
115
 
        oowriter tmp-build/share/solfege/help/*/one-big-page.html
116
 
 
117
 
rsync-manual: tmp-build/share/solfege/help/C/one-big-page.pdf
 
120
        for lang in $(USER_MANUAL_LANGUAGES) C; do \
 
121
                ls tmp-build/share/solfege/help/$$lang/one*.html; \
 
122
        done
118
123
        cd tmp-build/share/solfege/help && rsync --delete --rsh=ssh -r . tom@solfege.org:/var/www/docs.solfege.org/www/$(MAJOR_VERSION).$(MINOR_VERSION)
119
124
        ssh tom@solfege.org "cd /var/www/docs.solfege.org && python mkindex.py"
120
125
 
129
134
 
130
135
install: all mkinstalldirs install-po install-soundcard install-graphics install-program-files compileall
131
136
 
132
 
install-program-files:
 
137
install-program-files: mkinstalldirs
133
138
        $(INSTALL_PROGRAM) run-solfege.py $(DESTDIR)/$(bindir)/solfege
134
139
        $(INSTALL_PROGRAM) run-solfege.py $(DESTDIR)/$(bindir)/solfege
135
140
        $(INSTALL_DATA) solfege.gtkrc $(DESTDIR)/$(datadir)/$(PACKAGE)
141
146
        echo $(installfiles) | $(PYTHON) tools/pcopy.py $(DESTDIR)/$(datadir)/$(PACKAGE)/
142
147
 
143
148
compileall:
144
 
ifneq (x"$(nopycompile)",xYES)
 
149
ifneq "$(nopycompile)" "YES"
145
150
        $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(datadir)/$(PACKAGE)/solfege')"
146
151
endif
147
152
 
281
286
.PHONY: help
282
287
help:
283
288
        @echo "set skip_rev_test=yes if you need to skip the bzr revid test"
 
289
        @echo "set skipmanual=yes       Don't rebuild the music theory images"
284
290
        @echo "make po-update           Update po/solfege.pot and msgmerge with po/*.po"
285
291
        @echo "make manual-po-update    Update help/*/solfege.pot and msgmerge with help/*/*.po"
286
292
        @echo "make update-manual       Rebuild the manual, requiring xml2po etc."