Initial commit
[tietoopcom] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12
13
14
15 CFLAGS = -Wall -g
16
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18         CFLAGS += -O0
19 else
20         CFLAGS += -O2
21 endif
22
23 # shared library versions, option 1
24 version=2.0.5
25 major=2
26 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
27 #version=`ls src/.libs/lib*.so.* | \
28 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
29 #major=`ls src/.libs/lib*.so.* | \
30 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
31
32 configure: configure-stamp
33 configure-stamp:
34         dh_testdir
35         # Add here commands to configure the package.
36         ./configure
37         touch configure-stamp
38
39
40 build: build-stamp
41 build-stamp: configure-stamp 
42         dh_testdir
43
44         # Add here commands to compile the package.
45         $(MAKE) release
46
47         touch $@
48
49 clean:
50         dh_testdir
51         dh_testroot
52         rm -f build-stamp configure-stamp
53
54         # Add here commands to clean up after the build process.
55         -$(MAKE) distclean
56
57         dh_clean 
58
59 install: build
60         dh_testdir
61         dh_testroot
62         dh_clean -k 
63         dh_installdirs
64
65         # Add here commands to install the package into debian/tmp
66         $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
67
68
69 # Build architecture-independent files here.
70 binary-indep: build install
71 # We have nothing to do by default.
72
73 # Build architecture-dependent files here.
74 binary-arch: build install
75         dh_testdir
76         dh_testroot
77 #       dh_installchangelogs 
78 #       dh_installdocs
79 #       dh_installexamples
80         dh_install --sourcedir=debian/tmp
81 #       dh_installmenu
82 #       dh_installdebconf       
83 #       dh_installlogrotate
84 #       dh_installemacsen
85 #       dh_installpam
86 #       dh_installmime
87 #       dh_installinit
88 #       dh_installcron
89 #       dh_installinfo
90 #       dh_installman
91         dh_link
92         dh_strip
93         dh_compress
94         dh_fixperms
95 #       dh_perl
96 #       dh_python
97 #       dh_makeshlibs
98         dh_installdeb
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