File: rules

package info (click to toggle)
vlock 1.0-9
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 112 kB
  • ctags: 53
  • sloc: ansic: 464; makefile: 43
file content (40 lines) | stat: -rwxr-xr-x 1,062 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
#! /usr/bin/make -f 
#
# Copyright (C) 1997 Juan Cespedes <cespedes@debian.org>

SHELL=bash

build:
		$(MAKE) CFLAGS='-O2 -g -Wall -DSHADOW_PWD' LDFLAGS='-lcrypt' LDLIBS=''
		touch build

binary:		binary-arch binary-indep

binary-indep:

binary-arch:	build
		@test 0 = `id -u` || { echo "Error: not super-user"; exit 1; }
		$(RM) -rf debian/tmp
		install -m 755 -d debian/tmp/{DEBIAN,usr/{bin,doc/vlock,man/man1}}
		cp -p debian/changelog debian/tmp/usr/doc/vlock/changelog.Debian
		cp -p README debian/tmp/usr/doc/vlock
		gzip -9fv debian/tmp/usr/doc/vlock/*
		cp -p debian/copyright debian/tmp/usr/doc/vlock

		install -s vlock debian/tmp/usr/bin/vlock
		cp -p vlock.1 debian/tmp/usr/man/man1/vlock.1
		gzip -9f debian/tmp/usr/man/man1/vlock.1

		dpkg-shlibdeps debian/tmp/usr/bin/vlock
		dpkg-gencontrol
		chown -R 0.0 debian/tmp
		chmod -R g=rX debian/tmp
		chgrp shadow debian/tmp/usr/bin/vlock
		chmod 2755 debian/tmp/usr/bin/vlock
		dpkg --build debian/tmp ..

clean:
		$(RM) -f build debian/files debian/substvars
		$(MAKE) clean
		$(RM) -rf debian/tmp