File: rules

package info (click to toggle)
libapache-authensmb 0.60-3.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 36 kB
  • ctags: 16
  • sloc: makefile: 58; perl: 57
file content (102 lines) | stat: -rwxr-xr-x 2,540 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#! /usr/bin/make -f
############################ -*- Mode: Makefile -*- ###########################
## rules --- $Date: 2001/01/08 06:48:23 $ $Revision: 1.1 $ lowe@debian.org
## 
## This is the debian/rules file for the debian tse3 packages
## Originally hacked by Will Lowe <lowe@debian.org>
## from the rules file for the make package,  written by
## Manoj Srivastava ( srivasta@tiamat.datasync.com )
##
###############################################################################

package = libapache-authensmb

export DH_COMPAT=4

# Configuration variables (these should be pretty generic)
CC = gcc
#CFLAGS = -O2
# PREFIX = /usr
DEBIANDOCDIR = /usr/share/doc/$(package)

#  Package specific stuff.  The idea is to try to make the rules
#  generic (gradually).

FILES_TO_CLEAN  = TAGS tags debian/files 
INSTALL_DIR     = `pwd`/debian/$(package)
DIRS_TO_CLEAN   = $(INSTALL_DIR)
STAMPS_TO_CLEAN =  stamp-configure stamp-build stamp-binary 

install_file= install -p -o root -g root -m 644
install_program= install -p -o root -g root -m 755
make_directory= install -d -o root -g root -m 755
install_link= ln -s

all build: stamp-build
# Builds the binary package.

configure: stamp-configure

stamp-configure:
	perl Makefile.PL INSTALLDIRS=vendor
	touch stamp-configure

stamp-build:
# Builds the binary package.
	$(checkdir)
	-test -f stamp-configure || $(MAKE) -f debian/rules configure 
	$(MAKE) OPTIMIZE="-O2 -g -Wall"
	touch stamp-build


clean:	stamp-configure
# Undoes the effect of `$(MAKE) -f debian/rules build'.
	$(checkdir)
	make distclean
	-rm -f  $(FILES_TO_CLEAN) $(STAMPS_TO_CLEAN)
	dh_clean

binary: binary-indep binary-arch

# binary-indep: html stamp-doc
binary-arch: build stamp-binary

# Makes a binary package.
stamp-binary:
	@test root = "`whoami`" || (echo need root priviledges; exit 1)
	$(checkdir)
	@test -f stamp-build  || $(MAKE) -f debian/rules build
	dh_installdirs
	 $(MAKE) install PREFIX=$(INSTALL_DIR)/usr
	# policy says don't install .packlist
	#	rm $(INSTALL_DIR)/usr/lib/perl/5.6.1/auto/Authen/Smb/.packlist
	dh_installchangelogs Changes
	dh_perl
	dh_installdocs 
	dh_installinfo      
	dh_installmenu
	# get the shared lib dependencies files right
	dh_makeshlibs
	dh_compress
	dh_strip
	dh_installdeb
	dh_shlibdeps
	dh_md5sums
	dh_gencontrol
	dh_fixperms
	dh_builddeb
	touch                $@

checkroot:
	dh_testroot

define checkdir
	test -f debian/rules
endef

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false


.PHONY: binary binary-arch binary-indep clean