File: rules

package info (click to toggle)
base-passwd 3.1.10
  • links: PTS
  • area: main
  • in suites: potato
  • size: 200 kB
  • ctags: 115
  • sloc: ansic: 1,149; sh: 232; makefile: 76
file content (59 lines) | stat: -rwxr-xr-x 1,714 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
#! /usr/bin/make -f

# Debian package information
package		= base-passwd
docdir		= /usr/share/doc/$(package)
tmpdir		= $(shell pwd)/debian/tmp

# Other stuff
SHELL		= /bin/bash

.PHONY: all build
all build: Makefile
	$(MAKE) 

.PHONY: clean
clean:
	-make mrproper
	rm -rf debian/tmp debian/files debian/substvars

Makefile: Makefile.in configure.in
	./configure

.PHONY: binary
binary: binary-arch binary-indep

.PHONY: binary-indep
binary-indep:
	@echo Nothing to do

.PHONY: binary-arch
binary-arch: build
	test "`id -u`" -eq 0
	-rm -rf debian/tmp debian/{files,substvars}

	install -d -m 755 -o root -g root debian/tmp/usr/sbin
	install -s -m 755 -o root -g root update-passwd debian/tmp/usr/sbin
	install -d -m 755 -o root -g root debian/tmp/usr/share/man/man8
	install -p -m 644 -o root -g root update-passwd.8 \
		debian/tmp/usr/share/man/man8
	gzip -9 debian/tmp/usr/share/man/man8/*

	install -d -m 755 -o root -g root debian/tmp/usr/share/base-passwd
	install -p -m 644 -o root -g root {passwd,group}.master \
		debian/tmp/usr/share/base-passwd

	install -d -m 755 -o root -g root debian/tmp$(docdir)
	install -p -m 644 -o root -g root debian/changelog debian/tmp$(docdir)
	gzip -9 debian/tmp$(docdir)/*
	install -p -m 644 -o root -g root README debian/tmp$(docdir)
	install -p -m 644 -o root -g root debian/copyright debian/tmp$(docdir)

	install -d -m 755 -o root -g root debian/tmp/DEBIAN
	install -p -m 755 -o root -g root debian/preinst debian/tmp/DEBIAN
	install -p -m 755 -o root -g root debian/postinst debian/tmp/DEBIAN
	install -p -m 755 -o root -g root debian/prerm debian/tmp/DEBIAN

	dpkg-shlibdeps -dPre-Depends debian/tmp/usr/sbin/update-passwd
	dpkg-gencontrol
	dpkg --build debian/tmp ..