Moved to merjis/tools/wiki.
[cocanwiki.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 configure: configure-stamp
10 configure-stamp:
11         dh_testdir
12         touch configure-stamp
13
14 build: build-stamp
15 build-stamp: configure-stamp 
16         dh_testdir
17
18         $(MAKE)
19         touch build-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp configure-stamp
25
26         -$(MAKE) clean
27         dh_clean 
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k 
33         dh_installdirs
34
35         if [ -x /usr/bin/ocamlopt ]; then \
36                 BUILD_OPT=1; \
37         else \
38                 BUILD_OPT=0; \
39         fi; \
40         $(MAKE) pkg-install DESTDIR=$(CURDIR)/debian/cocanwiki
41
42 # Build architecture-independent files here.
43 binary-indep: build install
44 # We have nothing to do by default.
45
46 # Build architecture-dependent files here.
47 binary-arch: build install
48         dh_testdir
49         dh_testroot
50         dh_installchangelogs 
51         dh_installdocs
52         dh_installexamples
53 #       dh_install
54 #       dh_installmenu
55 #       dh_installdebconf       
56 #       dh_installlogrotate
57 #       dh_installemacsen
58 #       dh_installpam
59 #       dh_installmime
60 #       dh_installinit
61 #       dh_installcron
62 #       dh_installinfo
63         dh_installman
64         dh_link
65 #       dh_strip                # Nothing to strip, hopefully.
66         dh_compress
67         dh_fixperms
68 #       dh_perl
69 #       dh_python
70 #       dh_makeshlibs
71         dh_installdeb
72         dh_shlibdeps
73         dh_gencontrol
74         dh_md5sums
75         dh_builddeb
76
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install configure