File: rules

package info (click to toggle)
autodia 2.14-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 508 kB
  • sloc: perl: 6,102; makefile: 13
file content (28 lines) | stat: -rwxr-xr-x 767 bytes parent folder | download
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
26
27
28
#!/usr/bin/make -f
#-*- makefile -*-
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Christoph Lameter.

# Uncomment this to turn on verbose mode.
#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