r_doc = debian/$(package)-doc
d = usr/share/doc/$(package)
-# TELY_FILES := $(notdir $(wildcard Documentation/user/*.tely))
-# DVI_FILES = $(addprefix Documentation/user/out/, $(TELY_FILES:.tely=.dvi))
-# PS_FILES = $(DVI_FILES:.dvi=.ps)
-
# "main_memory = 263000" in /etc/texmf/texmf.cnf isn't large enough
# for latex to process standchen.dvi.latex, so adding extra_mem_* ...
-export extra_mem_top=100000
-export extra_mem_bot=100000
-export MODE=ljfour
-export BDPI=600
-export MAILADDRESS=lilypond@packages.debian.org
+export extra_mem_top = 100000
+export extra_mem_bot = 100000
+export MODE = ljfour
+export BDPI = 600
+export USER_CFLAGS = -DDEBIAN
+export DEB_BUILD = yes
+export MAILADDRESS = lilypond@packages.debian.org
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
--prefix=/usr --enable-optimise \
--infodir='$${prefix}/share/info' \
--mandir='$${prefix}/share/man'
- $(MAKE) USER_CFLAGS=-DDEBIAN all
+ $(MAKE)
touch build-stamp
# Still not clean enough? Let's use... BRUTE STRENGTH! :-)
find . -type d -name 'out' -o -name 'out-www' | xargs rm -rf
- rm -f debian/doc-base debian/TODO
dh_clean
# Add here commands to install the package into debian/tmp.
dh_installdirs
- $(MAKE) prefix=$(PWD)/$(r)/usr USER_CFLAGS=-DDEBIAN install
+ $(MAKE) prefix=$(PWD)/$(r)/usr install
# Change from an absolute symlink to a relative symlink (Lintian)
if [ -L $(r)/usr/share/lilypond/cmtfm ]; then \
dh_installdocs
dh_installchangelogs
dh_link
- dh_compress
+ dh_compress -Xusr/share/doc/lilypond/html/
dh_fixperms
dh_installdeb
dh_gencontrol
dh_compress
dh_fixperms
dh_installdeb
-# dh_shlibdeps
- # Ugh, ugly kludge to avoid the circular symlinks under html/
- cd debian/lilypond && dpkg-shlibdeps -T../substvars -dDepends \
- usr/bin/lilypond usr/bin/midi2ly
+ dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums