File: rules

package info (click to toggle)
libglu 9.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,668 kB
  • sloc: cpp: 25,667; ansic: 12,289; sh: 4,198; makefile: 235
file content (33 lines) | stat: -rwxr-xr-x 812 bytes parent folder | download
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
31
32
33
#!/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

override_dh_missing:
	dh_missing --fail-missing

%:
	dh $@ --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