File: rules

package info (click to toggle)
libschedule-cron-events-perl 1.95-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 124 kB
  • ctags: 28
  • sloc: perl: 742; makefile: 15
file content (21 lines) | stat: -rwxr-xr-x 529 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# installed as example
	$(RM) -v \
		$(TMP)/usr/bin/cron_event_predict.plx \
		$(TMP)/usr/share/man/man1/cron_event_predict.plx.1p
	rmdir --ignore-fail-on-non-empty --parents --verbose \
		$(TMP)/usr/bin \
		$(TMP)/usr/share/man/man1

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*