r1931: *** empty log message ***
[uffi.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     := uffi
12 debpkg  := cl-uffi
13 prefix  := debian/$(debpkg)
14
15 INSTALL := install
16 INSTALLFLAGS    := -g root -o root -m 0644
17 INSTALLDIRFLAGS := -d -g root -o root -m 0755
18
19 SOURCEDIR       := $(prefix)/usr/share/common-lisp/source
20 REPOSITORYDIR   := $(prefix)/usr/share/common-lisp/repositories/${pkg}
21 DOCDIR          := $(prefix)/usr/share/doc/${debpkg}
22
23
24 configure: configure-stamp
25 configure-stamp:
26         dh_testdir
27         # Add here commands to configure the package.
28
29         touch configure-stamp
30
31
32 build: build-stamp
33
34 build-stamp: configure-stamp 
35         dh_testdir
36
37         # Add here commands to compile the package.
38         $(MAKE) doc
39
40         touch build-stamp
41
42 clean:
43         dh_testdir
44         dh_testroot
45         rm -f build-stamp configure-stamp
46
47         # Add here commands to clean up after the build process.
48         -$(MAKE) clean
49         rm -f debian/cl-uffi.postinst.* debian/cl-uffi.prerm.*
50
51         dh_clean
52
53 install: build
54         dh_testdir
55         dh_testroot
56         dh_clean -k
57         dh_installdirs
58
59         # Add here commands to install the package into debian/uffi.
60         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl *.system) $(REPOSITORYDIR)
61         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(REPOSITORYDIR)/mcl
62         $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
63         cp doc/uffi.pdf doc/cl-uffi.pdf
64         rm -f doc/cl-uffi.pdf.gz
65         gzip doc/cl-uffi.pdf
66         $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.pdf.gz $(DOCDIR)
67         rm -f doc/cl-uffi.pdf.gz
68
69 # Build architecture-independent files here.
70 binary-indep: build install
71
72
73
74 # Build architecture-dependent files here.
75 binary-arch: build install
76         dh_testdir
77         dh_testroot
78 #       dh_installdebconf       
79         dh_installdocs
80         dh_installexamples examples/*.cl
81 #       dh_installmenu
82 #       dh_installlogrotate
83 #       dh_installemacsen
84 #       dh_installpam
85 #       dh_installmime
86 #       dh_installinit
87 #       dh_installcron
88 #       dh_installman
89 #       dh_installinfo
90 #       dh_undocumented
91         dh_installchangelogs ChangeLog
92         dh_link
93         dh_strip
94         dh_compress
95         dh_fixperms
96 #       dh_makeshlibs
97         dh_installdeb
98 #       dh_perl
99 #       dh_shlibdeps
100         dh_gencontrol
101         dh_md5sums
102         dh_builddeb
103
104 binary: binary-indep binary-arch
105 .PHONY: build clean binary-indep binary-arch binary install configure
106