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
|
|
|
|
|
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
ifeq ($(shell dpkg-architecture -qDEB_BUILD_ARCH),alpha)
|
2003-08-19 15:24:23 -04:00
|
|
|
echo 'cflags=`echo $${cflags} | sed s/-O./-O0/`' > debian/arch-config
|
2003-08-19 15:22:48 -04:00
|
|
|
else
|
2003-08-19 15:24:23 -04:00
|
|
|
echo '# empty' > debian/arch-config
|
2003-08-19 15:22:48 -04:00
|
|
|
endif
|
|
|
|
$(MAKE) SUBDIRS='include scripts src scm lib/misc lib/unix\
|
|
|
|
lib/xlib lib/xt lib/xaw lib/xm lib/xm/xt'
|
|
|
|
|
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp
|
|
|
|
|
|
|
|
-$(MAKE) -i distclean
|
|
|
|
rm -f debian/arch-config
|
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: DH_OPTIONS=
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
|
|
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/elk
|
|
|
|
|
|
|
|
mv $(CURDIR)/debian/elk/usr/bin/scheme \
|
|
|
|
$(CURDIR)/debian/elk/usr/bin/scheme-elk
|
|
|
|
install -m 755 debian/scheme-warning-elk $(CURDIR)/debian/elk/usr/bin/
|
2003-08-19 15:25:03 -04:00
|
|
|
install -m 644 debian/elk.ini $(CURDIR)/debian/elk/usr/share/elk
|
|
|
|
|
2003-08-19 15:22:48 -04:00
|
|
|
# dh_movefiles
|
|
|
|
|
|
|
|
# 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
|
|
|
|
dh_installexamples examples/*
|
|
|
|
# dh_installmenu
|
|
|
|
# dh_installemacsen
|
|
|
|
# dh_installpam
|
|
|
|
# dh_installinit
|
|
|
|
# dh_installcron
|
|
|
|
# dh_installmanpages
|
|
|
|
# dh_installinfo
|
|
|
|
# dh_undocumented
|
|
|
|
dh_installchangelogs CHANGES
|
|
|
|
# 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
|
|
|
|
dh_installman
|
|
|
|
# dh_installinfo
|
|
|
|
# dh_undocumented
|
|
|
|
dh_installchangelogs CHANGES
|
|
|
|
dh_strip
|
2003-08-19 15:27:51 -04:00
|
|
|
dh_link usr/bin/scheme-elk usr/bin/elk
|
2003-08-19 15:22:48 -04:00
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
# dh_makeshlibs
|
|
|
|
# dh_perl
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|