diff options
| author | laney <laney@ubuntu.com> | 2009-09-26 02:51:23 +0400 |
|---|---|---|
| committer | laney <laney@ubuntu.com> | 2009-09-26 02:51:23 +0400 |
| commit | adc6c8d3c685a24fe37fe7d5232e84ca83152dcd (patch) | |
| tree | bef73f08dcd35ea42c612b05e846771625771ace /p/alex/debian/rules | |
| parent | 8b5d503a4a9e5f937d1e776effacc1e1a94b7fd9 (diff) | |
| download | DHG_packages-adc6c8d3c685a24fe37fe7d5232e84ca83152dcd.tar.gz | |
alex: Initial import
Diffstat (limited to 'p/alex/debian/rules')
| -rwxr-xr-x | p/alex/debian/rules | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/p/alex/debian/rules b/p/alex/debian/rules new file mode 100755 index 000000000..75c1a8605 --- /dev/null +++ b/p/alex/debian/rules @@ -0,0 +1,104 @@ +#!/usr/bin/make -f +# debian/rules for alex +# This file is public domain software, originally written by Joey Hess. +# Adapted for alex by Ian Lynagh. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +prefix := /usr + +configure: configure-stamp +configure-stamp: + dh_testdir + + ghc6 --make Setup.lhs -o setup + ./setup configure --prefix=$(prefix) --with-compiler=/usr/bin/ghc6 + touch doc/configure + chmod +x doc/configure + cd doc && ./configure --prefix=$(prefix) + ghc6 --make debian/get_version.hs -o debian/get_version + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + ./setup build + $(MAKE) -C doc html + sed -e "s#@LIBDIR@#/usr/lib/alex-`debian/get_version`#g" \ + -e "s#@DOCDIR@#/usr/share/doc/alex#g" \ + -e "s#@VERSION@#`debian/get_version`#g" \ + doc/alex.1.in > doc/alex.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f configure-stamp build-stamp + + [ ! -f doc/config.mk ] || $(MAKE) -C doc clean + # Remove these so setup clean oesn't remove the generated files + rm -f src/Parser.y src/Scan.x + ghc6 --make Setup.lhs -o setup + -./setup clean + rm -f Setup.o Setup.hi setup + rm -f debian/get_version.o debian/get_version.hi debian/get_version + rm -f doc/alex.1 + # Hacks: + rm -f doc/config.log doc/config.status doc/config.mk + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/share/doc/alex/html + + ./setup copy --destdir=`pwd`/debian/`dh_listpackages` + rm -r `pwd`/debian/`dh_listpackages`/usr/share/doc/alex-*/ + + cp -a doc/alex/* `pwd`/debian/`dh_listpackages`/usr/share/doc/alex/html + cp -a examples `pwd`/debian/`dh_listpackages`/usr/share/doc/alex + +# Build architecture-independent files here. +binary-indep: build install + @: + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman doc/alex.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# 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 |
