File: Makefile

package info (click to toggle)
update 2.11-4
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 72 kB
  • ctags: 19
  • sloc: ansic: 127; makefile: 60; sh: 9
file content (37 lines) | stat: -rw-r--r-- 871 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id$

RELEASE=2.11

CC = gcc

# update doesn't need to run as root, at least if capabilities are used.
# When building for systems where this is true, -DRESTRICT_TO_ROOT=0
# should be added to CFLAGS.
CFLAGS = -O3 -fomit-frame-pointer -Wall

BINDIR = /sbin
MANDIR = /usr/man/man8

update: update.o

install: update
	mkdir -p $(BINDIR)
	mkdir -p $(MANDIR)
	install -c -s update $(BINDIR)/update
	install -m644 update.8 $(MANDIR)

clean:
	rm -f update core *.o *~

dist:
	(mkdir -p updated-$(RELEASE)/debian;\
	cp update.spec Makefile update.lsm\
	   update.c update.8 COPYING updated-$(RELEASE);\
	cp debian/README debian/changelog debian/control\
	   debian/copyright debian/rules updated-$(RELEASE)/debian;\
	chmod -R u=rwX,go=rX updated-$(RELEASE);\
	tar zcvf updated-$(RELEASE).tar.gz updated-$(RELEASE);\
	rm -fr updated-$(RELEASE))

# depencies
update.o: update.c