File: rules

package info (click to toggle)
libbadger-perl 0.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,400 kB
  • sloc: perl: 11,004; makefile: 9
file content (15 lines) | stat: -rwxr-xr-x 396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

%:
	dh $@

execute_before_dh_auto_configure:
	mkdir -p bak
	for f in MYMETA.json MYMETA.yml; do cp -pr $$f bak; done

override_dh_clean:
	dh_clean -X.bak t/codec/data/testrun.ts t/filesystem/testfiles/encoded.str t/log/logs/

	# Restore shipped files
	find bak -type f -print | sed -e 's/^bak\///' | while read f; do mkdir -p $$(dirname $$f); mv bak/$$f $$f; done
	rm -rf bak