File: rules

package info (click to toggle)
autodia 2.14-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 648 kB
  • sloc: perl: 6,102; makefile: 13
file content (21 lines) | stat: -rwxr-xr-x 527 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
#export DH_VERBOSE=1

TMP=$(shell pwd)/debian/autodia
PERL=/usr/bin/perl

%:
	dh $@

override_dh_auto_configure:
	# nothing: prevent wrong config run

override_dh_auto_build:
	$(PERL) Makefile.PL INSTALLDIRS=vendor
	$(MAKE) OPTIMIZE="-O2 -g -Wall"

override_dh_auto_install:
	dh_auto_install
	for i in `find $(TMP) -type f` ; do sed -i -e 's/autodia.pl/autodia/' $$i ; done
	mv $(TMP)/usr/bin/autodia.pl $(TMP)/usr/bin/autodia
	mv $(TMP)/usr/share/man/man1/autodia.pl.1p $(TMP)/usr/share/man/man1/autodia.1p