1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
#!/usr/bin/make -f
# This file is public domain software.
# Originally written by Joey Hess as sample debian/rules that uses debhelper.
# Modified for haskell98-report by Ian Lynagh.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
dh_installdirs
$(MAKE) PREFIX=`pwd`/debian/`dh_listpackages`/usr/share/doc/haskell98-report
$(MAKE) -C ffi
cp ffi/ffi.ps ffi/ffi.pdf debian/`dh_listpackages`/usr/share/doc/haskell98-report
$(MAKE) -C hierarchical-modules
cp hierarchical-modules/hier.ps hierarchical-modules/hier.pdf debian/`dh_listpackages`/usr/share/doc/haskell98-report
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-$(MAKE) clean
-$(MAKE) -C ffi clean
-$(MAKE) -C hierarchical-modules clean
dh_clean
binary-indep: build
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: build
@:
binary: binary-indep binary-arch
#PACKVER := $(shell basename $(shell pwd))
#TARBALL := $(shell echo $(PACKVER) | sed "s/-/_/-1").orig.tar.gz
#
#get-orig-source:
# @echo 'Enter "cvs" if asked for a password'
# cvs -d :pserver:anoncvs@glass.cse.ogi.edu:/cvs login
# cvs -d :pserver:anoncvs@glass.cse.ogi.edu:/cvs co haskell-report/
# find haskell-report/ -path "*/CVS" -prune -type d -name CVS -exec rm -r {} \;
# mv haskell-report/* .
# rmdir haskell-report/
# cd .. && tar --exclude $(PACKVER)/debian -zcvf $(TARBALL) $(PACKVER)
# mv ../$(TARBALL) .
.PHONY: build clean binary-indep binary-arch binary
|