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 LIBS=-lqthreads
24 CC=egcc ./configure --disable-checking --disable-debugging \
25 --enable-printing --prefix=/usr --disable-optimise \
35 rm -f build-stamp install-stamp
38 # Correct the owner of the out/dummy.dep files when built with sudo.
39 if [ -n "$$SUDO_USER" -a -n "$$SUDO_GID" ]; then \
40 find . -user root | xargs -r chown --dereference $$SUDO_USER.$$SUDO_GID; \
42 find . -user root | xargs -r chown --dereference $$LOGNAME; \
45 # Remove the following line once the *.make files are fixed
46 rm -f stepmake/bin/*.pyc
47 rm -f stepmake/stepmake/stepmake
48 rm -f stepmake/stepmake/bin
49 rm -f GNUmakefile stepmake/GNUmakefile
55 install: install-stamp
56 install-stamp: build-stamp
60 dh_installdirs usr/lib/texmf/doc \
61 usr/lib/emacs/site-lisp \
62 usr/doc/$(package)/examples
63 ln -fs ../../../doc/lilypond $(r)/usr/lib/texmf/doc/lilypond
65 $(MAKE) prefix=`pwd`/$(r)/usr install
69 # Build architecture-independent files here.
70 binary-indep: build install
71 # We have nothing to do by default.
73 binary-arch: build install
76 cp -av mudela-mode.el $(r)/usr/lib/emacs/site-lisp
77 dh_installdocs ANNOUNCEMENT ANNOUNCE-0.1 NEWS-* DEDICATION \
79 Documentation/pictures/*.xpm \
80 Documentation/out/*.txt \
81 Documentation/tex/*.doc \
82 Documentation/tex/*.bib
83 # dh_installexamples input
84 cp -aP `find input mutopia \( -name '*.ly' -o -name '*.tex' -o -name 'TODO' \)` \
86 for i in `find $(r)/$(d)/examples/ -type d -name out`; do \
87 mv -fv $$i/* $$i/..; rmdir $$i; done
93 dh_installchangelogs -k NEWS
106 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
108 binary: binary-indep binary-arch
109 .PHONY: build clean install binary-indep binary-arch binary