2 # debian/rules for LilyPond in Debian.
4 # This is free software; see the GNU General Public Licence
5 # version 2 or later for copying conditions. There is NO warranty.
8 export MAILADDRESS = lilypond@packages.debian.org
10 # fontconfig blows chunks if it can't write to $HOME; and some
11 # buildds set it to a bogus value.
14 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
15 CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
16 CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
17 ifneq (,$(filter $(DEB_HOST_ARCH), i386 kfreebsd-i386))
18 config_opt = --disable-optimising
19 CFLAGS := $(filter-out -O%, $(CFLAGS))
20 CXXFLAGS := $(filter-out -O%, $(CXXFLAGS))
22 config_opt = --enable-optimising
29 override_dh_auto_configure:
30 dh_auto_configure -- --disable-checking --enable-debugging $(config_opt)
33 $(MAKE) -j1 doc WEB_TARGETS="offline"
38 ## this rule will update debian/control and the per-language install
39 ## files; all of the files it generates/modifies should be included in
40 ## the Debian package and should not need to be regenerated or
43 perl debian/update_doc_packages
46 ## # Build architecture-independent files here.
47 ## binary-indep: DH_OPTIONS=-i
48 ## binary-indep: build-doc install
51 ## # Install LilyPond web documentation...
52 ## $(MAKE) install-doc prefix=$(CURDIR)/debian/lilypond-doc/usr/
53 ## # it installs a random dir-dep file for no reason
54 ## rm -f $(CURDIR)/debian/lilypond-doc/usr/share/info/*-dir-dep*
58 ## # remove the useless offline-root directory
59 ## mv $(CURDIR)/debian/lilypond-doc/usr/share/doc/lilypond/html/offline-root/* \
60 ## $(CURDIR)/debian/lilypond-doc/usr/share/doc/lilypond/html/.;
61 ## rmdir $(CURDIR)/debian/lilypond-doc/usr/share/doc/lilypond/html/offline-root;
62 ## find $(CURDIR)/debian/lilypond-doc/usr/share/doc/lilypond/html \
63 ## -type d -empty -delete
66 ## install -m 644 debian/xiao-haizi-guai-guai.ly debian/sakura-sakura.ly \
67 ## $(r_data)/$(d)/examples
68 ## dh_installchangelogs
70 ## dh_link usr/share/lilypond/$(VERSION)/tex \
71 ## usr/share/texmf/tex/lilypond \
72 ## usr/share/lilypond/$(VERSION)/fonts/source \
73 ## usr/share/texmf/fonts/source/public/lilypond \
74 ## usr/share/lilypond/$(VERSION)/fonts/type1 \
75 ## usr/share/texmf/fonts/type1/public/lilypond \
77 ## dh_pysupport /usr/share/lilypond/${VERSION}/python
79 ## dh_compress -X$(d)/html/
86 ## binary-arch: DH_OPTIONS=-s
87 ## binary-arch: build install
90 ## dh_installdocs AUTHORS.txt NEWS.txt README.txt \
95 ## dh_installchangelogs Documentation/misc/CHANGES* Documentation/misc/ChangeLog*
98 ## dh_pysupport /usr/share/lilypond/${VERSION}/python
107 binary: binary-indep binary-arch
108 .PHONY: build clean install binary-indep binary-arch binary