r1877: *** empty log message ***
[ctsim.git] / debian / rules
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=3
10
11 pkg     := ctsim
12 prefix  := debian/$(pkg)
13 DESTDIR := `pwd`/$(prefix)
14 SHAREDOCDIR := $(DESTDIR)/usr/share/doc/$(pkg)
15 SHAREDATADIR := $(DESTDIR)/usr/share/$(pkg)
16
17 INSTALL := install
18 INSTALLFLAGS    := -g root -o root -m 0644
19 INSTALLDIRFLAGS := -d -g root -o root -m 0755
20
21 configure: configure-stamp
22 configure-stamp:
23         dh_testdir
24         # Add here commands to configure the package.
25         ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(SHAREDATADIR)
26         touch configure-stamp
27
28
29 build: build-stamp
30
31 build-stamp: configure-stamp 
32         dh_testdir
33         # Add here commands to compile the package.
34         $(MAKE) 
35         touch build-stamp
36
37 clean:
38         dh_testdir
39         dh_testroot
40         rm -f build-stamp configure-stamp
41         # Add here commands to clean up after the build process.
42         -$(MAKE) distclean
43         find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
44         rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
45         dh_clean
46
47 install: build
48         dh_testdir
49         dh_testroot
50         dh_clean -k
51         dh_installdirs
52         # Add here commands to install the package into debian/ctsim.
53         ${MAKE} install
54         $(INSTALL) $(INSTALLFLAGS) $(shell echo doc/html/*) $(SHAREDOCDIR)/html
55
56 # Build architecture-independent files here.
57 binary-indep: build install
58
59
60 # Build architecture-dependent files here.
61 binary-arch: build install
62         dh_testdir
63         dh_testroot
64 #       dh_installdebconf       
65         dh_installdocs doc/html
66         dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
67 #       dh_installmenu
68 #       dh_installlogrotate
69 #       dh_installemacsen
70 #       dh_installpam
71 #       dh_installmime
72 #       dh_installinit
73 #       dh_installcron
74 #       dh_installman
75 #       dh_installinfo
76 #       dh_undocumented
77         dh_installchangelogs ChangeLog
78 #       dh_link
79         dh_strip
80         dh_compress
81         dh_fixperms
82 #       dh_makeshlibs
83         dh_installdeb
84 #       dh_perl
85 #       dh_shlibdeps
86         dh_gencontrol
87         dh_md5sums
88         dh_builddeb
89
90 binary: binary-indep binary-arch
91 .PHONY: build clean binary-indep binary-arch binary install configure
92