File: rules

package info (click to toggle)
topcom 1.1.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,784 kB
  • sloc: cpp: 37,616; sh: 4,262; makefile: 497; ansic: 49
file content (30 lines) | stat: -rwxr-xr-x 755 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's|+ds||')

%:
	dh $@

execute_before_dh_clean:
	rm -f $(MANS)

override_dh_auto_configure:
	dh_auto_configure -- --enable-qsoptex

execute_before_dh_installdocs:
	iconv -f ISO-8859-1 -t UTF-8 $(CURDIR)/README -o $(CURDIR)/README

execute_before_dh_installman: debian/topcom.7

debian/topcom.7: debian/topcom.txt
	txt2man -t TOPCOM -s 7 -r $(VERSION) $< > $@

MAN1DIR = usr/share/man/man1
TOPCOM7 = usr/share/man/man7/topcom.7
override_dh_link:
	$(eval TOPCOM_COMMANDS=$(notdir \
		$(wildcard debian/topcom/usr/bin/topcom-*)))
	dh_link $(patsubst %, $(TOPCOM7) $(MAN1DIR)/%.1, $(TOPCOM_COMMANDS))