~ubuntu-branches/ubuntu/wily/agrep/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jari Aalto
  • Date: 2012-04-11 00:09:20 UTC
  • Revision ID: package-import@ubuntu.com-20120411000920-kewcnrrf2kzszg3q
Tags: 4.17-9
* debian/control
  - (Build-Depends): Rm dpkg-dev; not needed with DEB_*_MAINT_* variables.
  - (Standards-Version): Update to 3.9.3.1.
* debian/copyright
  - Update to format 1.0.
* debian/rules
  - Use DEB_*_MAINT_* variables to enable all hardening features.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/dpkg/buildflags.mk
4
 
CFLAGS  += -Wall -pedantic
5
 
CFLAGS  += -I.
6
 
LDFLAGS += -Wl,--as-needed
7
 
export CFLAGS LDFLAGS
 
3
export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
 
4
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic -I.
 
5
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
8
6
 
9
7
override_dh_clean:
10
8
        #   The original sources contain *.orig and *.rej files
11
 
        #   that must not be cleaned, so that patch looks sensible
12
 
        #   so do *not* run 'dh_clean' commands.
 
9
        #   that must not be cleaned.
 
10
        #   So do *not* run 'dh_clean' commands.
13
11
 
14
12
        rm -rf debian/agrep debian/.#* debian/*[~#]
15
13
        rm -f debian/files debian/*.log debian/*.substvars
16
14
        [ ! -f Makefile ] || $(MAKE) clean
17
15
 
18
16
override_dh_auto_build:
19
 
        # These are the only variable that are free for user
20
 
        $(MAKE) DEBUGFLAGS="$(CFLAGS)" OTHERLIBS="$(LDFLAGS)"
 
17
        # These are the only variables that are free for user
 
18
        $(MAKE) DEBUGFLAGS="$(CFLAGS) $(CPPFLAGS)" OTHERLIBS="$(LDFLAGS)"
21
19
 
22
20
override_dh_installchangelogs:
23
21
        dh_installchangelogs agrep.chronicle