Package: dh-make
Version: 0.40
Severity: wishlist
The currently generated rules file read something like:
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
...
Where developers naturally want to write:
install -s -m 755 xproc-src/gxproc $(xproc-base)/usr/bin
install -s -m 755 gtk-shell $(gshell-base)/usr/bin
install -m 755 ftp.sh $(base)/usr/share/gxedit
SUGGESTION
=======================
Add common variables that can be used in the generate template for
better abtraction. Like this:
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of
dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+ INSTALL = /usr/bin/install
+ INSTALL_BIN = $(INSTALL) -m 755
+ INSTALL_DATA = $(INSTALL) -m 644
+ INSTALL_DIR = $(INSTALL_BIN) -d
...
Which hopefully leads programmers to take advantage of the in the 'install'
target.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Versions of packages dh-make depends on:
ii debhelper 4.9.13 helper programs for debian/rules
ii dpkg-dev 1.13.11 package building tools for Debian
ii make 3.80-11 The GNU version of the "make" util
ii perl 5.8.7-7 Larry Wall's Practical Extraction
dh-make recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]