2 # Made with the aid of debhelper by Joey Hess,
3 # based on the sample debian/rules file for GNU hello by Ian Jackson.
5 # This is free software; see the GNU General Public Licence
6 # version 2 or later for copying conditions. There is NO warranty.
8 # Currently maintained by Anthony Fok <foka@debian.org>
9 # for Debian GNU/Linux.
15 TMP
= `pwd`/debian
/tmp
16 d
= usr
/doc
/$(package
)
18 # Uncomment this to turn on verbose mode.
21 # This is the debhelper compatability version to use.
28 .
/configure
--disable-checking
--disable-debugging \
29 --enable-printing
--prefix=/usr
--disable-optimise \
31 --infodir='$${prefix}/share/info' \
32 --mandir='$${prefix}/share/man'
34 $(MAKE
) -C Documentation
/pictures pngs
36 # Remove the "-" and the "-k" once the \times segfault
37 # bug is fixed. (lilypond-1.1.31, 1999-02-17)
38 # -$(MAKE) -k -C Documentation/tex dvi
39 -$(MAKE
) -C Documentation
/tex dvi
40 -$(MAKE
) -C Documentation
info
49 rm -f build-stamp install-stamp
51 rm -f stepmake
/stepmake
/aclocal.m4
54 # Correct the owner of the out/dummy.dep files when built with sudo.
55 if
[ -n
"$$SUDO_USER" -a
-n
"$$SUDO_GID" ]; then \
56 find .
-user root | xargs
-r chown
--dereference
$$SUDO_USER.
$$SUDO_GID; \
59 install: install-stamp
60 install-stamp
: build-stamp
64 dh_installdirs usr
/doc
/texmf \
65 usr
/lib
/emacs
/site-lisp \
66 usr
/doc
/$(package
)/examples \
68 usr
/share
/texmf
/fonts
/source
/public \
69 usr
/share
/texmf
/fonts
/afm
/public \
70 usr
/share
/texmf
/fonts
/tfm
/public
71 ln
-fs ..
/lilypond
$(r
)/usr
/doc
/texmf
/lilypond
73 $(MAKE
) prefix=$(TMP
)/usr
install
75 ln
-s ..
/..
/lilypond
/tex $(r
)/usr
/share
/texmf
/tex/lilypond
76 ln
-s ..
/..
/..
/..
/lilypond
/mf
$(r
)/usr
/share
/texmf
/fonts
/source
/public
/lilypond
77 ln
-s ..
/..
/..
/..
/lilypond
/afm
$(r
)/usr
/share
/texmf
/fonts
/afm
/public
/lilypond
78 ln
-s ..
/..
/..
/..
/lilypond
/tfm
$(r
)/usr
/share
/texmf
/fonts
/tfm
/public
/lilypond
82 # Build architecture-independent files here.
83 binary-indep
: build
install
84 # We have nothing to do by default.
86 binary-arch
: build
install
89 cp
-av mudela-mode.el
$(r
)/usr
/lib
/emacs
/site-lisp
90 dh_installdocs AIMS ANNOUNCE
* NEWS-
* DEDICATION \
91 BUGS TASKS TODO
*.txt \
92 Documentation
/pictures
/out
/*.png \
93 Documentation
/out
/*.txt \
94 Documentation
/tex/*.doc \
95 Documentation
/tex/*.bib \
96 Documentation
/tex/out
/*.
dvi
97 # dh_installexamples input
98 cp
-aP
`find input mutopia \( -name '*.ly' -o -name '*.tex' -o -name 'TODO' \)` \
100 for i in
`find $(r)/$(d)/examples/ -type d -name out`; do \
101 mv
-fv
$$i/* $$i/..
; rmdir
$$i; done
107 dh_installchangelogs
-k NEWS
121 @echo
>&2 'source and diff are obsolete - use dpkg-source -b'; false
123 binary
: binary-indep binary-arch
124 .PHONY
: build
clean install binary-indep binary-arch binary