File: rules

package info (click to toggle)
xtitle 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 104 kB
  • sloc: sh: 88; makefile: 59
file content (29 lines) | stat: -rwxr-xr-x 580 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
#!/usr/bin/make -f

PACKAGE	  = xtitle
BIN	  = $(PACKAGE)
CHANGELOG = debian/upstream.changelog

include debian/debian-vars.mk

get-changelog:
	grep -i version= *.sh | sed 's,version=,,' > $(CHANGELOG)

override_dh_auto_build: get-changelog
	# Nothing to compile

override_dh_auto_clean:
	# Nothing to clean

override_dh_installchangelogs:
	dh_installchangelogs $(CHANGELOG)

override_dh_auto_install:
	install -D -m 755 $(PACKAGE).sh $(BINDIR)/$(BIN)
	install -D -m 755 xtctl.sh $(BINDIR)/xtctl
	install -D -m 644 $(PACKAGE).man $(MAN1DIR)/$(PACKAGE).1

%:
	dh $@

# End of file