File: rules

package info (click to toggle)
libmodule-extractuse-perl 0.344-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 868 kB
  • sloc: perl: 11,270; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 731 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
23
24
25
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
DYNFILE = $(CURDIR)/lib/Module/ExtractUse/Grammar.pm

%:
	dh $@

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

override_dh_auto_build:
	[ ! -f $(DYNFILE) ] || mv -v $(DYNFILE) $(DYNFILE).save
	dh_auto_build
	# copy precompiled file manually.
	# during build it gets created _after_ the lib/ -> lib/blib/ copying
	$(RM) -v  $(CURDIR)/blib/lib/Module/ExtractUse/Grammar.pm
	mkdir -pv $(CURDIR)/blib/lib/Module/ExtractUse/
	cp -v     $(DYNFILE) $(CURDIR)/blib/lib/Module/ExtractUse/

override_dh_auto_install:
	dh_auto_install
	$(RM) -v $(TMP)/usr/share/man/man3/Module::ExtractUse::Grammar.3pm