1999-12-19 13:08:32 -08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# GNU copyright 1997 by Joey Hess.
|
|
|
|
#
|
|
|
|
# This version is for a hypothetical package that builds an
|
|
|
|
# architecture-dependant package, as well as an architecture-independent
|
|
|
|
# package.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
# This is the debhelper compatability version to use.
|
|
|
|
export DH_COMPAT=2
|
|
|
|
|
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
export DH_OPTIONS
|
|
|
|
|
2001-11-08 23:01:54 -08:00
|
|
|
INSTALL=/usr/bin/install -p
|
|
|
|
CONFIGUREOPTS = --prefix=/usr --enable-mmx=no
|
2000-12-24 07:41:15 -08:00
|
|
|
package=libimlib2
|
2000-11-13 10:26:31 -08:00
|
|
|
|
2000-04-27 09:14:21 -07:00
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
2001-11-08 23:01:54 -08:00
|
|
|
./autogen.sh $(CONFIGUREOPTS) || ./configure $(CONFIGUREOPTS)
|
|
|
|
touch $@
|
2000-04-27 09:14:21 -07:00
|
|
|
|
|
|
|
build: configure build-stamp
|
1999-12-19 13:08:32 -08:00
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
2000-11-13 10:26:31 -08:00
|
|
|
$(MAKE)
|
2001-11-08 23:01:54 -08:00
|
|
|
touch $@
|
1999-12-19 13:08:32 -08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
2000-04-27 09:14:21 -07:00
|
|
|
rm -f build-stamp configure-stamp
|
1999-12-19 13:08:32 -08:00
|
|
|
|
2000-02-02 16:10:14 -08:00
|
|
|
-$(MAKE) distclean
|
2000-11-13 10:26:31 -08:00
|
|
|
-rm -f configure-stamp build-stamp
|
1999-12-19 13:08:32 -08:00
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: DH_OPTIONS=
|
2000-11-13 10:26:31 -08:00
|
|
|
install: build
|
1999-12-19 13:08:32 -08:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
2000-12-24 07:41:15 -08:00
|
|
|
$(MAKE) install DESTDIR=$(shell pwd)/debian/$(package)/
|
2000-11-13 10:26:31 -08:00
|
|
|
|
2000-12-24 07:41:15 -08:00
|
|
|
$(INSTALL) -d debian/$(package)-dev/usr/share/man/man1
|
2001-10-31 13:39:50 -08:00
|
|
|
$(INSTALL) -d debian/$(package)-dev/usr/lib/loaders/filter
|
|
|
|
$(INSTALL) -d debian/$(package)-dev/usr/lib/loaders/image
|
|
|
|
|
2000-12-24 07:41:15 -08:00
|
|
|
$(INSTALL) debian/imlib2-config.1 debian/$(package)-dev/usr/share/man/man1
|
|
|
|
mv debian/$(package)/usr/{include,bin} debian/$(package)-dev/usr
|
|
|
|
mv debian/$(package)/usr/lib/*.{so,la,a} debian/$(package)-dev/usr/lib/
|
2001-10-31 13:39:50 -08:00
|
|
|
mv debian/$(package)/usr/lib/loaders/filter/*.{la,a} debian/$(package)-dev/usr/lib/loaders/filter
|
|
|
|
mv debian/$(package)/usr/lib/loaders/image/*.{la,a} debian/$(package)-dev/usr/lib/loaders/image
|
2000-12-24 07:41:15 -08:00
|
|
|
|
|
|
|
$(INSTALL) -d debian/$(package)-dev/usr/share/doc/$(package)-dev/html
|
|
|
|
$(INSTALL) -m 644 doc/*.{html,gif} debian/$(package)-dev/usr/share/doc/$(package)-dev/html
|
1999-12-19 13:08:32 -08:00
|
|
|
|
2000-11-13 10:26:31 -08:00
|
|
|
binary-indep:
|
1999-12-19 13:08:32 -08:00
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
# Pass -a to all debhelper commands in this target to reduce clutter.
|
|
|
|
binary-arch: DH_OPTIONS=-a
|
|
|
|
binary-arch: build install
|
|
|
|
# Need this version of debhelper for DH_OPTIONS to work.
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2000-11-13 10:26:31 -08:00
|
|
|
dh_installdocs AUTHORS README
|
1999-12-19 13:08:32 -08:00
|
|
|
dh_installchangelogs
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
dh_makeshlibs
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
2000-12-24 07:41:15 -08:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|
|
|
|
|