r1813: *** 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
19 SYSDIR          := $(prefix)/usr/share/common-lisp/systems
20 DOCDIR          := $(prefix)/usr/share/doc/cl-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.debian $(SYSDIR)
61         mv $(SYSDIR)/uffi.system.debian $(SYSDIR)/uffi.system
62         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl) $(SOURCESDEST)
63         $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(SOURCESDEST)/mcl
64         $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
65         cp doc/uffi.ps doc/cl-uffi.ps
66         rm -f doc/cl-uffi.ps.gz
67         gzip doc/cl-uffi.ps
68         $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.ps.gz $(DOCDIR)
69         rm -f doc/cl-uffi.ps.gz
70
71 # Build architecture-independent files here.
72 binary-indep: build install
73 # We have nothing to do by default.
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