/[svn]/debian/rules
ViewVC logotype

Contents of /debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 949 - (hide annotations)
Tue Jul 10 18:13:14 2007 UTC (5 years, 11 months ago) by abate
File size: 1322 byte(s)
[r2004-01-11 13:29:40 by szach] checked in latest debian (dpatched) directory

Original author: szach
Date: 2004-01-11 13:29:40+00:00
1 abate 949 #!/usr/bin/make -f
2    
3     # Uncomment this to turn on verbose mode.
4     #export DH_VERBOSE=1
5    
6     include /usr/share/dpatch/dpatch.make
7    
8     # This has to be exported to make some magic below work.
9     export DH_OPTIONS
10    
11     MAKE_OPTS := $(shell if [ -x /usr/bin/ocamlopt ]; then echo "NATIVE=true"; else echo "NATIVE=false"; fi)
12    
13     #Architecture
14     build: build-arch
15    
16     build-arch: build-arch-stamp
17     build-arch-stamp: patch-stamp
18     $(MAKE) $(MAKE_OPTS) all
19     touch build-arch-stamp
20    
21     clean: patch clean1 unpatch
22     clean1:
23     dh_testdir
24     dh_testroot
25     rm -f build-arch-stamp
26    
27     # Add here commands to clean up after the build process.
28     -$(MAKE) $(MAKE_OPTS) clean
29    
30     dh_clean
31    
32     install: install-arch
33    
34     install-arch:
35     dh_testdir
36     dh_testroot
37     dh_clean -k -a
38     dh_installdirs -a
39    
40     mkdir -p debian/tmp/usr/bin
41     mkdir -p debian/tmp/usr/lib/cgi-bin/cduce
42     mkdir -p debian/tmp/usr/share/doc/cduce/html
43     $(MAKE) $(MAKE_OPTS) install_web
44    
45     dh_install -a
46    
47     binary-common:
48     dh_testdir
49     dh_testroot
50     dh_installchangelogs CHANGES
51     dh_installdocs
52     dh_installexamples
53     dh_installman doc/cduce.1
54     dh_link
55     dh_strip
56     dh_compress
57     dh_fixperms
58     dh_installdeb
59     dh_shlibdeps
60     dh_gencontrol
61     dh_md5sums
62     dh_builddeb
63    
64     binary-arch: build-arch install-arch
65     $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
66    
67     binary: binary-arch
68     .PHONY: build clean binary-arch binary install install-arch

Properties

Name Value
svn:executable *

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5