File: rules

package info (click to toggle)
tdiary 5.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,852 kB
  • sloc: ruby: 22,925; xml: 325; makefile: 16; sh: 10
file content (22 lines) | stat: -rwxr-xr-x 574 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
#!/usr/bin/make -f

manpages = tdiary-setup.1 tdiary-convert2.1
DEB_DESTDIR := $(CURDIR)/debian/tdiary-core

%:
	dh $@

override_dh_auto_install: $(manpages)
	chmod a+x $(CURDIR)/misc/migrate.rb
	dh_auto_install
	rm -f $(DEB_DESTDIR)/usr/share/tdiary/misc/convert2.rb
	install -D -m 755 misc/convert2.rb $(DEB_DESTDIR)/usr/bin/tdiary-convert2
	install -D -m 755 debian/tdiary-setup.rb $(DEB_DESTDIR)/usr/bin/tdiary-setup

$(manpages): %.1: debian/%.sgml
	docbook-to-man $< > $@

override_dh_auto_clean:
	dh_auto_clean
	chmod a-x $(CURDIR)/misc/migrate.rb
	rm -f $(manpages)