~ubuntu-branches/ubuntu/trusty/facter/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Palmer
  • Date: 2006-06-30 12:43:50 UTC
  • Revision ID: james.westby@ubuntu.com-20060630124350-udquzn3f8k0d2yag
Tags: 1.3.3-1
New upstream release.

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
CFLAGS = -Wall -g
 
13
 
 
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
15
        CFLAGS += -O0
 
16
else
 
17
        CFLAGS += -O2
 
18
endif
 
19
 
 
20
configure: configure-stamp
 
21
configure-stamp:
 
22
        dh_testdir
 
23
        # Add here commands to configure the package.
 
24
 
 
25
        touch configure-stamp
 
26
 
 
27
 
 
28
build: build-stamp
 
29
 
 
30
build-stamp: configure-stamp 
 
31
        dh_testdir
 
32
 
 
33
        touch build-stamp
 
34
 
 
35
clean:
 
36
        dh_testdir
 
37
        dh_testroot
 
38
        rm -f build-stamp configure-stamp
 
39
 
 
40
        dh_clean 
 
41
 
 
42
install: build
 
43
        dh_testdir
 
44
        dh_testroot
 
45
        dh_clean -k 
 
46
        dh_installdirs
 
47
 
 
48
        # Add here commands to install the package into debian/facter.
 
49
        cp bin/facter $(CURDIR)/debian/facter/usr/bin
 
50
        cp -a lib/facter lib/facter.rb $(CURDIR)/debian/facter/usr/lib/ruby/1.8
 
51
 
 
52
# Build architecture-dependent files here.
 
53
binary-arch: build install
 
54
 
 
55
# Build architecture-independent files here.
 
56
binary-indep: build install
 
57
        dh_testdir
 
58
        dh_testroot
 
59
        dh_installchangelogs CHANGELOG
 
60
        dh_installdocs
 
61
        dh_compress
 
62
        dh_fixperms
 
63
        dh_installdeb
 
64
        dh_shlibdeps
 
65
        dh_gencontrol
 
66
        dh_md5sums
 
67
        dh_builddeb
 
68
 
 
69
binary: binary-indep binary-arch
 
70
.PHONY: build clean binary-indep binary-arch binary install configure