Initial commit.
[extra-profiles] / 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 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23         INSTALL_PROGRAM += -s
24 endif
25
26 config.status:
27         dh_testdir
28         CFLAGS="$(CFLAGS)" ./autogen.sh; ./configure --prefix=/usr
29
30 build: build-stamp
31
32 build-stamp: config.status 
33         dh_testdir
34
35         $(MAKE)
36
37         touch build-stamp
38
39 clean:
40         dh_testdir
41         dh_testroot
42         rm -f build-stamp
43         rm -f install-stamp
44         rm -f debian/files
45
46         -$(MAKE) clean
47
48         rm -rf debian/rtcom-extra-profiles
49
50         dh_clean
51
52 install: build
53         dh_testdir
54         dh_testroot
55         dh_clean -k 
56         dh_installdirs
57
58         $(MAKE) DESTDIR=$(CURDIR)/debian/rtcom-extra-profiles install
59
60 # Build architecture-independent files here.
61 binary-indep: build install
62         dh_testdir
63         dh_testroot
64         dh_installchangelogs
65         dh_installdocs
66         dh_installexamples
67         dh_link
68         dh_strip
69         dh_compress
70         dh_fixperms
71         dh_installdeb
72         dh_gencontrol
73         dh_md5sums
74         dh_builddeb
75
76 # Build architecture-dependent files here.
77 binary-arch: build install
78         # Make sure that dpkg-genchanges will not fail,
79         # but there is nothing else to do.
80         touch debian/files
81
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary install configure