File: rules

package info (click to toggle)
icc-profiles-free 2.0.1+dfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,716 kB
  • sloc: makefile: 38
file content (49 lines) | stat: -rwxr-xr-x 1,062 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

package=icc-profiles-free

DEBIAN_DIR = $(shell pwd)/debian

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp

build-stamp:
	dh_testdir
	touch build-stamp

# Undo the `make -f rules build'.
clean:
	dh_testdir -i
	dh_testroot -i
	dh_clean
	rm -rf debian/$(package)
	rm -f debian/*~
	rm -f build-stamp

binary-indep: build
	dh_testdir -i
	dh_testroot -i
	dh_installdocs -i
	dh_installchangelogs -i
	dh_install -i --sourcedir=$(DEBIAN_DIR)/$(package)
	install -d $(DEBIAN_DIR)/$(package)/usr/share/color/icc
	for f in *; do \
		if echo $$f | egrep -qi '\.(icc|icm|ti3)$$'; then \
			cp $$f $(DEBIAN_DIR)/$(package)/usr/share/color/icc/; \
		elif ! echo $$f | egrep -qi '^(debian|build-stamp)$$'; then \
			cp $$f $(DEBIAN_DIR)/$(package)/usr/share/doc/$(package)/; \
		fi; \
	done
	dh_link -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch: clean binary-indep
binary: clean binary-indep