2 # Made with the aid of debhelper by 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.
14 d = usr/doc/$(package)
16 # Uncomment this to turn on verbose mode.
23 CC=egcc ./configure --disable-checking --disable-debugging \
24 --enable-printing --prefix=/usr --enable-optimise \
34 rm -f build-stamp install-stamp
37 # Correct the owner of the out/dummy.dep files when built with sudo.
38 if [ -n "$$SUDO_USER" -a -n "$$SUDO_GID" ]; then \
39 find . -user root | xargs -r chown $$SUDO_USER.$$SUDO_GID; \
41 find . -user root | xargs -r chown $$LOGNAME; \
44 # Remove the following line once the *.make files are fixed
45 rm -f stepmake/bin/*.pyc
46 rm -f stepmake/stepmake/stepmake
47 rm -f stepmake/stepmake/bin
48 rm -f GNUmakefile stepmake/GNUmakefile
54 install: install-stamp
55 install-stamp: build-stamp
59 dh_installdirs usr/lib/texmf/doc \
60 usr/lib/emacs/site-lisp \
61 usr/doc/$(package)/examples
62 ln -fs ../../../doc/lilypond $(r)/usr/lib/texmf/doc/lilypond
64 $(MAKE) prefix=`pwd`/$(r)/usr install
68 # Build architecture-independent files here.
69 binary-indep: build install
70 # We have nothing to do by default.
72 binary-arch: build install
75 cp -av mudela-mode.el $(r)/usr/lib/emacs/site-lisp
76 dh_installdocs ANNOUNCEMENT ANNOUNCE-0.1 NEWS* DEDICATION \
78 Documentation/pictures/*.xpm \
79 Documentation/out/*.txt \
80 Documentation/tex/*.doc \
81 Documentation/tex/*.bib
82 # dh_installexamples input
83 cp -aP `find input mutopia \( -name '*.ly' -o -name '*.tex' -o -name 'TODO' \)` \
85 for i in `find $(r)/$(d)/examples/ -type d -name out`; do \
86 mv -fv $$i/* $$i/..; rmdir $$i; done
96 if [ -f NEWS ]; then gzip -9vf NEWS; fi )
97 ln -s NEWS.gz $(r)/$(d)/changelog.gz
108 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
110 binary: binary-indep binary-arch
111 .PHONY: build clean install binary-indep binary-arch binary