]> git.donarmstrong.com Git - lilypond.git/blob - debian/rules
release: 1.0.1
[lilypond.git] / debian / rules
1 #!/usr/bin/make -f
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.
4 #
5 # This is free software; see the GNU General Public Licence
6 # version 2 or later for copying conditions.  There is NO warranty.
7 #
8 # Currently maintained by Anthony Fok <foka@debian.org>
9 # for Debian GNU/Linux.
10
11 package = lilypond
12
13 SHELL = /bin/bash
14
15 # Uncomment this to turn on verbose mode.
16 #export DH_VERBOSE=1
17
18 build: build-stamp
19 build-stamp:
20         dh_testdir
21
22         ./configure --disable-checking --disable-debugging \
23                 --enable-printing --prefix=/usr --enable-optimise \
24                 --enable-shared
25         $(MAKE) all
26
27         touch build-stamp
28
29 clean:
30         dh_testdir
31         dh_testroot
32         rm -f build-stamp
33         -$(MAKE) distclean
34         -$(MAKE) local-distclean
35
36         # Remove the following line once the *.make files are fixed
37         rm -f bin/*.pyc
38         rm -f debian/preinst
39
40         dh_clean
41
42 # Build architecture-independent files here.
43 binary-indep: build
44 # We have nothing to do by default.
45
46 binary-arch: build
47         dh_testdir
48         dh_testroot
49         dh_clean -k
50
51         dh_installdirs usr/lib/texmf/doc \
52                 usr/lib/emacs/site-lisp \
53                 usr/doc/$(package)/examples
54         ln -fs ../../../doc/lilypond debian/tmp/usr/lib/texmf/doc/lilypond
55         $(MAKE) prefix=`pwd`/debian/tmp/usr install
56         cp -av mudela-mode.el debian/tmp/usr/lib/emacs/site-lisp
57         dh_installdocs ANNOUNCEMENT ANNOUNCE-0.1 README.txt NEWS ONEWS DEDICATION \
58                 BUGS TODO \
59                 Documentation/pictures/*.xpm \
60                 Documentation/out/*.txt \
61                 Documentation/tex/*.doc \
62                 Documentation/tex/*.bib
63 #       dh_installexamples input
64         cp -aP `find input mutopia \( -name '*.ly' -o -name '*.tex' -o -name 'TODO' \)` \
65                 debian/tmp/usr/doc/lilypond/examples
66 #       dh_installmenu
67 #       dh_installcron
68 #       dh_installmanpages
69 #       dh_undocumented
70         dh_installchangelogs
71 #       dh_strip
72         dh_compress
73         dh_fixperms
74         dh_suidregister
75         dh_installdeb
76         dh_shlibdeps
77         dh_gencontrol
78 #       dh_makeshlibs
79         dh_md5sums
80         dh_builddeb
81
82 source diff:
83         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
84
85 binary: binary-indep binary-arch
86 .PHONY: build clean binary-indep binary-arch binary