File: rules

package info (click to toggle)
cmph 2.0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,748 kB
  • sloc: ansic: 10,582; cpp: 2,429; makefile: 151; sh: 111; python: 48; xml: 5
file content (20 lines) | stat: -rwxr-xr-x 538 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-
#
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_install:
	# Fixes https://sourceforge.net/p/cmph/git/merge-requests/5/
	chmod -x examples/vector_adapter_ex1.c examples/Makefile.am
	dh_auto_install
	sed -i 's/^\(dependency_libs=\).*/\1/' `find $(CURDIR)/debian/tmp -name *.la`

common-install-arch::
	mkdir -p debian/tmp/usr/include/cmph/private/
	for X in *hash.h *structs.h *state.h; do\
		cp src/$$X debian/tmp/usr/include/cmph/private/; \
	done