File: rules

package info (click to toggle)
libconfig-record-perl 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 216 kB
  • ctags: 16
  • sloc: perl: 516; sh: 34; makefile: 12
file content (17 lines) | stat: -rwxr-xr-x 455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

SPECPLFILE=$(CURDIR)/Config-Record.spec.PL
METAPLFILE=$(CURDIR)/META.yml.PL

%:
	dh $@

override_dh_clean:
	dh_clean
	[ ! -f $(SPECPLFILE).save ] || mv -v $(SPECPLFILE).save $(SPECPLFILE)
	[ ! -f $(METAPLFILE).save ] || mv -v $(METAPLFILE).save $(METAPLFILE)

override_dh_auto_build:
	[ ! -f $(SPECPLFILE) ] || mv -v $(SPECPLFILE) $(SPECPLFILE).save
	[ ! -f $(METAPLFILE) ] || mv -v $(METAPLFILE) $(METAPLFILE).save
	dh_auto_configure