File: rules

package info (click to toggle)
rust-riffdiff 3.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,784 kB
  • sloc: sh: 206; python: 132; makefile: 11
file content (15 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

%:
	dh $@ --buildsystem cargo

override_dh_auto_clean:
	dh_auto_clean
	-rm $(CURDIR)/debian/riff.1

override_dh_auto_install:
	sed -e "s/@VERSION@/$(DEB_VERSION_UPSTREAM)/g" -e "s/@DATE@/$(shell LANG="en" date --utc --date="@$(SOURCE_DATE_EPOCH)" +'%B %Y')/g" $(CURDIR)/debian/riff.1.in > $(CURDIR)/debian/riff.1
	dh_auto_install