--- Begin Message ---
Package: ncpfs
Version: 2.2.0.17-2
Severity: wishlist
Separate `config' target from `build' target to make it easier on
folks who study the code before they build it. I needed to configure
first before making TAGS, viewing the config.h, etc. I wish this was
a standard thing. I alway want to be able to run `debian/rules
config'.
Also allow setting of extra `configure' options, and explicitly pass
the ${configuration} value, so that it's set correctly on i{5,6}86
machines and bears the Debian label in the vendor field.
Index: rules
===================================================================
RCS file: /var/cvs/debian/ncpfs/debian/rules,v
retrieving revision 1.1
diff -u -r1.1 rules
--- rules 2000/06/09 04:41:16 1.1
+++ rules 2000/06/09 06:06:01
@@ -14,25 +14,44 @@
mandir=$(DESTDIR)/usr/share/man \
sbindir=$(DESTDIR)/usr/sbin
+# ----------------------------------------------------------------
+# Build host environment configuration:
+DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
+
+DEB_BUILD_GNU_CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
+
+configuration := ${DEB_HOST_GNU_CPU}-debian-${DEB_HOST_GNU_SYSTEM}
+
+config_enable_opts := --enable-pam
+# --enable-trace
+
+config_extra_opts :=
+
+config: config-stamp
+config-stamp:
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ ${config_enable_opts} \
+ ${config_extra_opts} \
+ ${configuration}
+ touch $@
+
build: build-stamp
-build-stamp:
+build-stamp: config-stamp
dh_testdir
-
- # Add here commands to compile the package.
- [ -f Makefile ] || ./configure --prefix=/usr --mandir=/usr/share/man
-
$(MAKE)
-
- touch build-stamp
+ touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
-
- # Add here commands to clean up after the build process.
-$(MAKE) distclean
-
dh_clean
install: install-stamp
@@ -41,10 +60,7 @@
dh_testroot
dh_clean -k
dh_installdirs
-
- # Add here commands to install the package into debian/tmp.
$(MAKE) install $(IVARS)
-
# Create a symlink from /usr/sbin/nwmsg to /sbin/nwmsg because
# the kernel (kerneld actually) will look for this binary there
# when a broadcast message from the server is received...
@@ -97,4 +113,4 @@
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: config build clean binary-indep binary-arch binary
--
A few months in the laboratory often saves several hours at the library.
mailto:karlheg@debian.org (Karl M. Hegbloom)
irc: nick karlheg on irc.debian.org
--- End Message ---