File: rules

package info (click to toggle)
gambc 3.0-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 14,928 kB
  • ctags: 5,931
  • sloc: ansic: 295,198; lisp: 33,097; perl: 1,730; makefile: 760; sed: 448; sh: 215
file content (63 lines) | stat: -rwxr-xr-x 1,451 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

#export DH_VERBOSE=1

INSTALL=install --owner=root --group=root --mode=0644
SHELL=/bin/bash # Want brace expansion bashism.
export SHELL

build: build-stamp
build-stamp:
	dh_testdir
	./configure --prefix=/usr
# after CVS checkout, all the time stamps are the same.
# have to touch all the C so it will build.
	find -name '*.c' -exec touch {} \;
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) distclean
	rm -f doc/gambit-c.{info*,cm,fl,op}
	dh_clean

binary-indep: build

D=`pwd`/debian/tmp
binary-arch: build
#	dh_testversion for one with dh_dhelp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) prefix=$(D)/usr install
	$(INSTALL) doc/*.html	   $(D)/usr/doc/gambc/html/
	(cd $(D)/usr/doc/gambc/html; \
		ln -s gambit-c_toc.html index.html; )
	$(INSTALL) doc/*.ps $(D)/usr/doc/gambc/
	dh_installdocs readme
	dh_installexamples misc/bench.tgz check/*
#	dh_dhelp - not yet.
	$(INSTALL) debian/dhelp	   $(D)/usr/doc/gambc/.dhelp
	dh_installmenu
	dh_undocumented gsi.1.gz gsc.1.gz
	dh_installchangelogs
	dh_compress
	dh_strip
	dh_fixperms
	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
#	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary