| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
export DEB_CPPFLAGS_MAINT_APPEND = -DVERSION=\\\"$(DEB_VERSION_UPSTREAM)\\\" -DGLOBAL_CONF=\\\"/etc/onddirrc\\\" |
| 7 |
|
| 8 |
include /usr/share/dpkg/buildtools.mk |
| 9 |
CFLAGS_FOR_MAKEFILE=$(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS) |
| 10 |
LDFLAGS_FOR_MAKEFILE=$(shell dpkg-buildflags --get LDFLAGS) |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
dh_auto_build -- CC='$(CC)' LD='$(CC)' CFLAGS='$(CFLAGS_FOR_MAKEFILE)' LDFLAGS='$(LDFLAGS_FOR_MAKEFILE)' |
| 17 |
|
| 18 |
override_dh_auto_install: |
| 19 |
dh_auto_install -- CC='$(CC)' LD='$(CC)' CFLAGS='$(CFLAGS_FOR_MAKEFILE)' LDFLAGS='$(LDFLAGS_FOR_MAKEFILE)' |
| 20 |
|
| 21 |
override_dh_fixperms: |
| 22 |
dh_fixperms |
| 23 |
@# Remove the executable flag from files installed there, since |
| 24 |
@# they are supposed to be sourced. |
| 25 |
chmod a-x debian/ondir/usr/share/ondir/integration/* |