r1963: *** 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 isn't necessary because the docs are in the upstream version
39         # $(MAKE) doc
40
41         touch build-stamp
42
43 clean:
44         dh_testdir
45         dh_testroot
46         rm -f build-stamp configure-stamp
47
48         # Add here commands to clean up after the build process.
49         -$(MAKE) clean
50         rm -f debian/cl-uffi.postinst.* debian/cl-uffi.prerm.*
51
52         dh_clean
53
54 install: build
55         dh_testdir
56         dh_testroot
57         dh_clean -k
58         dh_installdirs
59
60         # Add here commands to install the package into debian/uffi.
61         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl *.system) $(REPOSITORYDIR)
62         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(REPOSITORYDIR)/mcl
63         $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
64         cp doc/uffi.pdf doc/cl-uffi.pdf
65         rm -f doc/cl-uffi.pdf.gz
66         gzip doc/cl-uffi.pdf
67         $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.pdf.gz $(DOCDIR)
68         rm -f doc/cl-uffi.pdf.gz
69
70 # Build architecture-independent files here.
71 binary-indep: build install
72
73
74
75 # Build architecture-dependent files here.
76 binary-arch: build install
77         dh_testdir
78         dh_testroot
79 #       dh_installdebconf       
80         dh_installdocs
81         dh_installexamples examples/*.cl
82 #       dh_installmenu
83 #       dh_installlogrotate
84 #       dh_installemacsen
85 #       dh_installpam
86 #       dh_installmime
87 #       dh_installinit
88 #       dh_installcron
89 #       dh_installman
90 #       dh_installinfo
91 #       dh_undocumented
92         dh_installchangelogs ChangeLog
93         dh_link
94         dh_strip
95         dh_compress
96         dh_fixperms
97 #       dh_makeshlibs
98         dh_installdeb
99 #       dh_perl
100 #       dh_shlibdeps
101         dh_gencontrol
102         dh_md5sums
103         dh_builddeb
104
105 binary: binary-indep binary-arch
106 .PHONY: build clean binary-indep binary-arch binary install configure
107