1: #!/usr/bin/make -f
2: # Sample debian/rules that uses debhelper.
3: # GNU copyright 1997 to 1999 by Joey Hess.
4:
5: # Uncomment this to turn on verbose mode.
6: #export DH_VERBOSE=1
7:
8: # This is the debhelper compatibility version to use.
9: export DH_COMPAT=4
10:
11: CFLAGS = -g
12: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13: CFLAGS += -O0
14: else
15: CFLAGS += -O2
16: endif
17:
18: build: build-stamp
19: build-stamp:
20: dh_testdir
21:
22: # Add here commands to compile the package.
23: ./configure
24: make all
25: # --- end custom part for compiling
26:
27: touch build-stamp
28:
29: clean:
30: dh_testdir
31: dh_testroot
32: rm -f build-stamp
33:
34: # Add here commands to clean up after the build process.
35: #make clean
36: # --- end custom part for cleaning up
37:
38: dh_clean
39:
40: install: build
41: dh_testdir
42: dh_testroot
43: dh_clean -k
44: dh_installdirs
45:
46: # Add here commands to install the package
47: # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/debian/<nameOfPackage>
48: make install DESTDIR=/usr/src/packages/BUILD/debian/gforth
49: # --- end custom part for installing
50:
51: # Build architecture-independent files here.
52: binary-indep: build install
53: # We have nothing to do by default.
54:
55: # Build architecture-dependent files here.
56: binary-arch: build install
57: dh_testdir
58: dh_testroot
59: # dh_installdebconf
60: dh_installdocs
61: dh_installexamples
62: dh_installmenu
63: # dh_installlogrotate
64: # dh_installemacsen
65: # dh_installpam
66: # dh_installmime
67: # dh_installinit
68: dh_installcron
69: dh_installman
70: dh_installinfo
71: # dh_undocumented
72: dh_installchangelogs
73: dh_link
74: dh_strip
75: dh_compress
76: dh_fixperms
77: # dh_makeshlibs
78: dh_installdeb
79: # dh_perl
80: dh_shlibdeps
81: dh_gencontrol
82: dh_md5sums
83: dh_builddeb
84:
85: binary: binary-indep binary-arch
86: .PHONY: build clean binary-indep binary-arch binary install
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>