r1810: *** 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     := cl-uffi
12 prefix  := debian/$(pkg)
13
14 INSTALL := install
15 INSTALLFLAGS    := -g root -o root -m 0644
16 INSTALLDIRFLAGS := -d -g root -o root -m 0755
17
18 SOURCESDEST     := $(prefix)/usr/share/common-lisp/repositories/uffi/src
19 SYSDIR          := $(prefix)/usr/share/common-lisp/systems
20 DOCDIR          := $(prefix)/usr/share/doc/uffi
21
22
23 configure: configure-stamp
24 configure-stamp:
25         dh_testdir
26         # Add here commands to configure the package.
27
28         touch configure-stamp
29
30
31 build: build-stamp
32
33 build-stamp: configure-stamp 
34         dh_testdir
35
36         # Add here commands to compile the package.
37         $(MAKE) doc
38         #/usr/bin/docbook-to-man debian/uffi.sgml > uffi.1
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
50         dh_clean
51
52 install: build
53         dh_testdir
54         dh_testroot
55         dh_clean -k
56         dh_installdirs
57
58         # Add here commands to install the package into debian/uffi.
59         $(INSTALL) $(INSTALLDIRFLAGS) $(SOURCESDEST) $(SOURCESDEST)/mcl $(SYSDIR) $(DOCDIR) $(DOCDIR)/html
60         $(INSTALL) $(INSTALLFLAGS) uffi.system $(SYSDIR)
61         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl) $(SOURCESDEST)
62         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(SOURCESDEST)/mcl
63         $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
64         cp doc/uffi.ps doc/cl-uffi.ps
65         rm -f doc/cl-uffi.ps.gz
66         gzip doc/cl-uffi.ps
67         $(INSTALL) $(INSTALLDIRFLAGS) doc/uffi.ps.gz $(DOCDIR)
68         rm doc/cl-uffi.ps.gz
69
70 # Build architecture-independent files here.
71 binary-indep: build install
72 # We have nothing to do by default.
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
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