2000-12-24 15:49:07 -08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
|
2001-10-31 13:39:50 -08:00
|
|
|
export DH_COMPAT=3
|
2000-12-24 15:49:07 -08:00
|
|
|
|
2001-10-31 13:39:50 -08:00
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
package = e17
|
2000-12-24 15:49:07 -08:00
|
|
|
pwd:=$(shell pwd)
|
2001-10-28 21:59:26 -08:00
|
|
|
cfg:=--prefix=/usr --datadir=/usr/share/e17 PACKAGE=e17 DESTDIR=/usr
|
2000-12-24 15:49:07 -08:00
|
|
|
INSTALL=/usr/bin/install
|
|
|
|
|
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
2001-10-28 21:59:26 -08:00
|
|
|
test -e configure.ac && sed <configure.ac "s/AC_INIT_AUTOMAKE(enlightenment/AC_INIT_AUTOMAKE(e17/" >configure.ac1 && mv -f configure.ac1 configure.ac
|
|
|
|
test -e configure.in && sed <configure.in "s/AC_INIT_AUTOMAKE(enlightenment/AC_INIT_AUTOMAKE(e17/" >configure.in1 && mv -f configure.in1 configure.in
|
2000-12-24 15:49:07 -08:00
|
|
|
test -x autogen.sh && ./autogen.sh $(cfg) || ./configure $(cfg)
|
2001-10-31 13:39:50 -08:00
|
|
|
$(MAKE)
|
|
|
|
touch $@
|
|
|
|
|
2000-12-24 15:49:07 -08:00
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
rm -f build-stamp
|
|
|
|
-$(MAKE) distclean
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
|
|
|
# change enlightenment to e17 to co-exist with e16
|
|
|
|
$(MAKE) install \
|
|
|
|
DESTDIR=$(pwd)/debian/e17 \
|
|
|
|
PACKAGE=e17\
|
|
|
|
pkgdatadir=/usr/share/e17
|
|
|
|
mv debian/e17/usr/bin/enlightenment debian/e17/usr/bin/e17
|
|
|
|
|
|
|
|
binary-indep: build install
|
|
|
|
|
|
|
|
binary-arch: build install
|
2001-10-31 13:39:50 -08:00
|
|
|
dh_testversion 3
|
2000-12-24 15:49:07 -08:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installdocs AUTHORS README
|
|
|
|
dh_installchangelogs
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|