~vcs-imports/mintinstall/trunk

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Clement Lefebvre
  • Date: 2009-07-27 10:34:25 UTC
  • Revision ID: git-v1:6b412dbbc6fb503d826b5a152f7a6fa698af6585
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
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
        touch build-stamp
 
36
 
 
37
clean:
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        rm -f build-stamp configure-stamp
 
41
        dh_clean 
 
42
 
 
43
install: build
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        dh_clean -k 
 
47
        dh_installdirs
 
48
 
 
49
        # Add here commands to install the package into debian/mintinstall.
 
50
        #$(MAKE) install DESTDIR=$(CURDIR)/debian/mintinstall
 
51
        mkdir -p $(CURDIR)/debian/mintinstall
 
52
        cp -r $(CURDIR)/usr $(CURDIR)/debian/mintinstall/
 
53
 
 
54
# Build architecture-independent files here.
 
55
binary-indep: build install
 
56
# We have nothing to do by default.
 
57
 
 
58
# Build architecture-dependent files here.
 
59
binary-arch: build install
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_installchangelogs 
 
63
        dh_installdocs
 
64
        dh_installexamples
 
65
#       dh_install
 
66
#       dh_installmenu
 
67
#       dh_installdebconf       
 
68
#       dh_installlogrotate
 
69
#       dh_installemacsen
 
70
#       dh_installpam
 
71
#       dh_installmime
 
72
#       dh_python
 
73
#       dh_installinit
 
74
#       dh_installcron
 
75
#       dh_installinfo
 
76
        dh_installman
 
77
        dh_link
 
78
        dh_strip
 
79
        dh_compress
 
80
        dh_fixperms
 
81
#       dh_perl
 
82
#       dh_makeshlibs
 
83
        dh_installdeb
 
84
        dh_shlibdeps
 
85
        dh_gencontrol
 
86
        dh_md5sums
 
87
        dh_builddeb
 
88
 
 
89
binary: binary-indep binary-arch
 
90
.PHONY: build clean binary-indep binary-arch binary install configure