~ubuntu-branches/ubuntu/saucy/fdclone/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Elías Alejandro Año Mendoza
  • Date: 2013-03-31 20:19:19 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130331201919-vd2f75ssuh1sdctw
Tags: 3.01-1
* New upstream release
* Updated Standard-Version to 3.9.4
* Bump debhelper to 9
* debian/rules enabled hardening build flags

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
3
export PKGDIR=`pwd`/debian/fdclone
4
 
CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
 
4
 
 
5
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 
6
CFLAGS+=-Wall
 
7
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 
8
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
5
9
 
6
10
%:
7
11
        dh $@
11
15
        $(MAKE) clean
12
16
        rm -f mkmfsed config.h mkkanji mkcat fd-cat.ja fd-cat.C mkmf.sed
13
17
override_dh_auto_build:
14
 
        $(MAKE) PREFIX=/usr CONFDIR=/etc/fdclone
 
18
        $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" PREFIX=/usr CONFDIR=/etc/fdclone
15
19
override_dh_install:
16
20
        $(MAKE) install PREFIX=$(PKGDIR)/usr \
17
21
                        DATADIR=$(PKGDIR)/usr/share/fdclone \