File: rules

package info (click to toggle)
colortest 20110624-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 152 kB
  • sloc: perl: 413; sh: 328; makefile: 21
file content (35 lines) | stat: -rwxr-xr-x 985 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
#!/usr/bin/make -f

PACKAGE = colortest
PKGDIR ?= $(shell pwd)/debian/$(PACKAGE)
DOCDIR  = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/doc
BINDIR  = $(PKGDIR)/usr/bin

PACKAGE2 = colortest-python
PKGDIR2 ?= $(shell pwd)/debian/$(PACKAGE2)
BINDIR2  = $(PKGDIR2)/usr/bin

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=colortest-8 makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=colortest-16 makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=colortest-16b makeman
	$(MAKE) -C debian -f pod2man.mk PACKAGE=colortest-256 makeman

# What is not not installed:
#
# colortest
#   Problem: does not reset terminal back to defaults (colors stick)

override_dh_auto_install: man
	install -m 755 -d $(BINDIR)
	install -m 755 8colors.sh $(BINDIR)/colortest-8
	install -m 755 16colors.sh $(BINDIR)/colortest-16
	install -m 755 colortable16.sh $(BINDIR)/colortest-16b
	install -m 755 256colors2.pl $(BINDIR)/colortest-256

%:
	dh  $@

.PHONY: man configure build build-arch binary-arch

# End of file