2003-08-19 15:22:48 -04: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 has to be exported to make some magic below work.
|
|
|
|
export DH_OPTIONS
|
|
|
|
|
2003-08-25 08:20:01 -04:00
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
./configure --prefix=/usr
|
|
|
|
|
|
|
|
touch configure-stamp
|
|
|
|
|
2003-08-19 15:22:48 -04:00
|
|
|
build: build-stamp
|
2003-08-25 08:20:01 -04:00
|
|
|
build-stamp: configure-stamp
|
2003-08-19 15:22:48 -04:00
|
|
|
dh_testdir
|
|
|
|
|
2003-08-25 08:20:01 -04:00
|
|
|
$(MAKE)
|
2003-08-19 15:22:48 -04:00
|
|
|
|
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2003-08-25 08:20:01 -04:00
|
|
|
rm -f build-stamp configure-stamp
|
2003-08-19 15:22:48 -04:00
|
|
|
|
|
|
|
-$(MAKE) -i distclean
|
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: DH_OPTIONS=
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
|
|
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/elk
|
|
|
|
|
2003-08-21 08:40:09 -04:00
|
|
|
mv $(CURDIR)/debian/elk/usr/lib/*.so.* \
|
|
|
|
$(CURDIR)/debian/libelk0/usr/lib/
|
|
|
|
|
|
|
|
mv $(CURDIR)/debian/elk/usr/include/elk/* \
|
|
|
|
$(CURDIR)/debian/libelk0-dev/usr/include/elk/
|
|
|
|
mv $(CURDIR)/debian/elk/usr/lib/*.so \
|
2003-08-25 08:20:01 -04:00
|
|
|
$(CURDIR)/debian/elk/usr/lib/*.la \
|
2003-08-21 08:40:09 -04:00
|
|
|
$(CURDIR)/debian/elk/usr/lib/*.a \
|
|
|
|
$(CURDIR)/debian/libelk0-dev/usr/lib/
|
2003-08-19 15:22:48 -04:00
|
|
|
|
2003-08-28 05:39:36 -04:00
|
|
|
mv $(CURDIR)/debian/elk/usr/share/doc/elk/examples \
|
|
|
|
$(CURDIR)/debian/elkdoc/usr/share/doc/elkdoc/
|
|
|
|
|
2003-08-19 15:22:48 -04:00
|
|
|
# Build architecture-independent files here.
|
|
|
|
# Pass -i to all debhelper commands in this target to reduce clutter.
|
|
|
|
binary-indep: DH_OPTIONS=-i
|
|
|
|
binary-indep: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
# dh_installdebconf
|
|
|
|
dh_installdocs
|
2003-08-28 05:39:36 -04:00
|
|
|
# dh_installexamples
|
2003-08-19 15:22:48 -04:00
|
|
|
# dh_installmenu
|
|
|
|
# dh_installemacsen
|
|
|
|
# dh_installpam
|
|
|
|
# dh_installinit
|
|
|
|
# dh_installcron
|
|
|
|
# dh_installmanpages
|
|
|
|
# dh_installinfo
|
|
|
|
# dh_undocumented
|
2003-08-25 08:20:01 -04:00
|
|
|
dh_installchangelogs NEWS
|
2003-08-19 15:22:48 -04:00
|
|
|
# dh_link
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
# dh_perl
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
# 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
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
# dh_installdebconf
|
|
|
|
dh_installdocs
|
|
|
|
# dh_installexamples
|
|
|
|
dh_installmenu
|
|
|
|
# dh_installemacsen
|
|
|
|
# dh_installpam
|
|
|
|
# dh_installinit
|
|
|
|
# dh_installcron
|
|
|
|
# dh_installmanpages
|
2003-08-28 05:39:36 -04:00
|
|
|
# dh_installman
|
2003-08-19 15:22:48 -04:00
|
|
|
# dh_installinfo
|
|
|
|
# dh_undocumented
|
2003-08-25 08:20:01 -04:00
|
|
|
dh_installchangelogs NEWS
|
2003-08-19 15:22:48 -04:00
|
|
|
dh_strip
|
2003-08-25 08:20:01 -04:00
|
|
|
dh_link usr/bin/elk usr/bin/scheme-elk
|
2003-08-19 15:22:48 -04:00
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
2003-08-21 08:40:09 -04:00
|
|
|
dh_makeshlibs
|
2003-08-19 15:22:48 -04:00
|
|
|
# dh_perl
|
2003-08-21 08:40:09 -04:00
|
|
|
dh_shlibdeps -L libelk0 -l debian/libelk0/usr/lib
|
2003-08-19 15:22:48 -04:00
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|