File: rules

package info (click to toggle)
haskell98-report 20030706-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,888 kB
  • ctags: 80
  • sloc: haskell: 3,810; makefile: 336; sh: 4
file content (63 lines) | stat: -rwxr-xr-x 1,594 bytes parent folder | download
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,pdf} debian/`dh_listpackages`/usr/share/doc/haskell98-report
	$(MAKE) -C hierarchical-modules
	cp hierarchical-modules/hier.{ps,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