File: rules

package info (click to toggle)
libglu 9.0.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 3,540 kB
  • ctags: 3,201
  • sloc: cpp: 25,669; ansic: 12,285; sh: 11,087; makefile: 233
file content (30 lines) | stat: -rwxr-xr-x 796 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
25
26
27
28
29
30
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules

override_dh_clean:
	for file in debian/*.in; do rm -f $${file%%.in}; done
	dh_clean

override_dh_install:
	for file in debian/*.in; \
	do \
		sed -e"s,\$${DEB_HOST_MULTIARCH},$(DEB_HOST_MULTIARCH),g" \
			$${file} > $${file%%.in}; \
	done

	# purge .la files
	find debian/tmp/ -name '*.la' -exec rm '{}' ';'

	dh_install --fail-missing

%:
	dh $@ --with autoreconf --builddirectory=build/

gentarball: SOURCE=libglu
gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
gentarball:
	git archive --format=tar upstream-unstable --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz