~ttx/+junk/maven-packaging-support

« back to all changes in this revision

Viewing changes to sample/debian/rules

  • Committer: Ludovic
  • Date: 2008-11-18 00:08:52 UTC
  • Revision ID: ludovic.claude@laposte.net-20081118000852-2zkbcd5htcleteqa
mvn-prepare and mvn-go-offline work

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
package = hello-debhelper
 
4
 
 
5
CC = gcc
 
6
CFLAGS = -g -Wall
 
7
 
 
8
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
9
  CFLAGS += -O2
 
10
endif
 
11
 
 
12
clean:
 
13
        dh_clean
 
14
        rm -f build
 
15
        -$(MAKE) -i distclean
 
16
 
 
17
install: build
 
18
        dh_clean
 
19
        dh_installdirs
 
20
        $(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
 
21
 
 
22
build:
 
23
        ./configure --prefix=/usr
 
24
        $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"
 
25
        touch build
 
26
 
 
27
binary-indep: install
 
28
# There are no architecture-independent files to be uploaded
 
29
# generated by this package.  If there were any they would be
 
30
# made here.
 
31
 
 
32
binary-arch: install
 
33
        dh_installdocs -a NEWS
 
34
        dh_installchangelogs -a ChangeLog
 
35
        dh_strip -a
 
36
        dh_compress -a
 
37
        dh_fixperms -a
 
38
        dh_installdeb -a
 
39
        dh_shlibdeps -a
 
40
        dh_gencontrol -a
 
41
        dh_md5sums -a
 
42
        dh_builddeb -a
 
43
 
 
44
binary: binary-indep binary-arch
 
45
 
 
46
.PHONY: binary binary-arch binary-indep clean