File: rules

package info (click to toggle)
colortest 20100406-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 176 kB
  • ctags: 19
  • sloc: perl: 413; sh: 314; python: 305; makefile: 21
file content (38 lines) | stat: -rwxr-xr-x 1,050 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
34
35
36
37
38
#!/usr/bin/make -f

PACKAGE = colortest

PKGDIR ?= $(shell pwd)/debian/$(PACKAGE)
DOCDIR  = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/doc
BINDIR  = $(PKGDIR)/usr/bin
c       = "User Commands"

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

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

	# These are not installed, because:
	# - Does not reset terminal back to defaults (colors stick)

	: || colortest

	# - Is same as 256colors2, but on Python.
	# - Would need extra dependency on "python"

	: || terminal_colors

%:
	dh  $@

.PHONY: man configure build binary-arch

# End of file