File: rules

package info (click to toggle)
taopm 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 6,852 kB
  • ctags: 1,941
  • sloc: sh: 9,809; cpp: 5,159; yacc: 2,297; lex: 464; makefile: 436; ansic: 57
file content (24 lines) | stat: -rwxr-xr-x 816 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

# TODO: multiarch - needs some hacks in upstream code
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- TAODIR=/usr/lib/$(DEB_HOST_MULTIARCH)/taopm
override_dh_auto_clean:
	dh_auto_clean
	rm -f libtao/*.loT config.status.lineno
override_dh_install:
	dh_install --list-missing
	#Drop content of dependency_libs
	for file in $(CURDIR)/debian/taopm/usr/lib/$(DEB_HOST_MULTIARCH)/*.la; do \
	        sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
	done
override_dh_fixperms:
	dh_fixperms
	chmod 644 debian/taopm/usr/share/doc/taopm/examples/* \
                  debian/taopm/usr/lib/$(DEB_HOST_MULTIARCH)/taopm/include/* \
                  debian/taopm/usr/lib/$(DEB_HOST_MULTIARCH)/taopm/user-scripts/error.parse