File: rules

package info (click to toggle)
libglu 9.0.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,684 kB
  • sloc: cpp: 25,664; ansic: 12,229; sh: 4,320; makefile: 233
file content (28 lines) | stat: -rwxr-xr-x 713 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
#!/usr/bin/make -f

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

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

%:
	dh $@ --builddirectory=build/ \
		--buildsystem=meson

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