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.
7 # Currently maintained by Anthony Fok <foka@debian.org>
8 # for Debian GNU/Linux.
14 r_doc
= debian
/$(package
)-doc
15 d
= usr
/share
/doc
/$(package
)
18 VERSION
= $(MAJOR_VERSION
).
$(MINOR_VERSION
).
$(PATCH_LEVEL
)
20 # "main_memory = 263000" in /etc/texmf/texmf.cnf isn't large enough
21 # for latex to process standchen.dvi.latex, so adding extra_mem_* ...
22 # export extra_mem_top = 100000
23 # export extra_mem_bot = 100000
24 # But now, building lilypond.dvi requires increased pool_size (2002-02-18)
25 # export pool_size = 500000
26 # But now, it seems that none of the above is needed in 1.4.11 (2002-02-24)
29 export USER_CFLAGS
= -DDEBIAN
30 export DEB_BUILD
= yes
31 export MAILADDRESS
= lilypond@packages.debian.org
33 # Uncomment this to turn on verbose mode.
36 # This is the debhelper compatibility version to use.
39 # This has to be exported to make some magic below work.
45 .
/configure
--enable-checking
--enable-debugging \
46 --prefix=/usr
--enable-optimise \
47 --infodir='$${prefix}/share/info' \
48 --mandir='$${prefix}/share/man'
49 $(MAKE
) MAKE_PFA_FILES
=1
52 build-doc
: build build-doc-stamp
56 $(MAKE
) -C Documentation
58 find .
-type d
-name
'out-www' | xargs
rm -rf
65 rm -f build-stamp build-doc-stamp
66 -$(MAKE
) WWW-clean top-WWW-clean
69 # Still not clean enough? Let's use... BRUTE STRENGTH! :-)
70 find .
-type d
-name
'out' -o
-name
'out-www' | xargs
rm -rf
71 rm -f debian
/lilypond.links
81 # Add here commands to install the package into debian/tmp.
83 $(MAKE
) prefix=$(PWD
)/$(r
)/usr MAKE_PFA_FILES
=1 install
84 # Ugh, remove hundred music-glossary copies
85 find .
-name
'music-glossary.info-*' | xargs
rm -f
87 # Build architecture-independent files here.
88 binary-indep
: DH_OPTIONS
=-i
89 binary-indep
: build-doc
install
92 # Extract LilyPond website tarball ...
93 tar -C
$(r_doc
)/$(d
)/html
-xvzf out
/web.
tar.gz
94 # Add symlinks to the PostScript docs and LilyPond logo PNGs ...
96 && cp
-s
`find html/Documentation -name '*.ps.gz'` . \
97 && cp
-s html
/Documentation
/pictures
/out-www
/*.png .
98 # # Copy the DVI docs too ...
99 # cp -a `find Documentation -name '*.dvi' ! -name 'lily-[0-9]*.dvi'` \
104 dh_compress
-X
$(d
)/html
/
111 binary-arch
: DH_OPTIONS
=-s
112 binary-arch
: build
install
115 cp
-av lilypond-mode.el lilypond-font-lock.el lilypond-indent.el \
117 $(r
)/usr
/share
/emacs
/site-lisp
/
118 dh_installdocs DEDICATION ROADMAP
*.txt
120 # dh_installdocs DEDICATION NEWS ROADMAP *.txt \
121 # Documentation/pictures/out/*.png
122 # Documentation/out/*.txt
123 # $(DVI_FILES) $(PS_FILES)
124 # mkdir $(r)/$(d)/bibliography $(r)/$(d)/misc
125 # cp -a Documentation/bibliography/*.bib $(r)/$(d)/bibliography/
126 # cp -a Documentation/misc/[ACN]* $(r)/$(d)/misc/
128 # dh_installexamples input
129 # find input \( -name '*.*ly' -o -name '*.abc' -o -name '*.tex' -o -name 'TODO' \) \
130 # -exec cp -a --parents '{}' $(r)/$(d)/examples ';'
131 # for i in `find $(r)/$(d)/examples/ -type d -name out`; do \
132 # mv -fv $$i/* $$i/..; rmdir $$i; done
138 dh_installchangelogs ChangeLog
140 mv
$(r
)/usr
/share
/lilypond
/$(VERSION
)/dvips
/lilypond.map \
141 $(r
)/etc
/texmf
/dvips
/lilypond.map
142 dh_link usr
/share
/lilypond
/$(VERSION
)/tex \
143 usr
/share
/texmf
/tex/lilypond \
144 usr
/share
/lilypond
/$(VERSION
)/fonts
/source \
145 usr
/share
/texmf
/fonts
/source
/public
/lilypond \
146 usr
/share
/lilypond
/$(VERSION
)/fonts
/afm \
147 usr
/share
/texmf
/fonts
/afm
/public
/lilypond \
148 usr
/share
/lilypond
/$(VERSION
)/fonts
/tfm \
149 usr
/share
/texmf
/fonts
/tfm
/public
/lilypond \
150 etc
/texmf
/dvips
/lilypond.map \
151 usr
/share
/lilypond
/$(VERSION
)/dvips
/lilypond.map
162 binary
: binary-indep binary-arch
163 .PHONY
: build
clean install binary-indep binary-arch binary