File: Makefile

package info (click to toggle)
adjtimex 1.20-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 420 kB
  • ctags: 154
  • sloc: sh: 2,875; ansic: 1,773; makefile: 120
file content (70 lines) | stat: -rw-r--r-- 1,847 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
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
# Generated automatically from Makefile.in by configure.
#### Start of system configuration section.             -*-makefile-*- ####
 srcdir = .

VERSION=1.20

CFLAGS = -g -O2 -Wall
prefix = /usr
man1dir=${prefix}/share/man/man1
exec_prefix = ${prefix}
bindir=/sbin

INSTALL=/usr/bin/install -c

# Extension (not including `.') for the manual page filenames.
manext = 8
# Where to put the manual pages.
mandir = $(prefix)/share/man/man$(manext)

#### End of system configuration section. ####

SHELL = /bin/sh

SRC = adjtimex.c adjtimex.8 mat.c mat.h install-sh configure.in		\
 configure Makefile.in README README.ru adjtimex.lsm adjtimex.lsm.in	\
 COPYING COPYRIGHT ChangeLog

all: adjtimex adjtimex.lsm

adjtimex: adjtimex.c mat.o
	$(CC) $(CFLAGS) -I. -DVERSION=\"$(VERSION)\" -o adjtimex adjtimex.c  \
		mat.o -lm

adjtimex.lsm: adjtimex.lsm.in Makefile.in
	sed -e 's/@VERSION@/$(VERSION)/'		\
	  -e "s/@DATE@/`date +%d%b%y|tr [a-z] [A-Z]`/"	\
	  adjtimex.lsm.in >adjtimex.lsm

mat.o: mat.c
	$(CC) $(CFLAGS) -c mat.c

install: all
	$(INSTALL) -g bin -m 755 -o root adjtimex $(bindir)/adjtimex
	$(INSTALL) -d -g root -m 755 -o root $(mandir)
	-$(INSTALL) -g root -m 644 -o root $(srcdir)/adjtimex.8 \
		$(mandir)/adjtimex.$(manext)

uninstall:
	rm -f $(bindir)/adjtimex $(mandir)/adjtimex.$(manext)

clean: 
	rm -f core *.o
veryclean: clean
	rm -f adjtimex

shar: $(SRC)
	distname=adjtimex-$(VERSION);		\
	shar $(SRC) >$$distname.shar 

dist: $(SRC)
	distname=adjtimex-$(VERSION);					      \
	rm -fr $$distname;						      \
	mkdir $$distname;						      \
	for file in $(SRC); do						      \
	  ln $$file $$distname/$$file					      \
	  || { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
	done;								      \
	chmod -R a+rX $$distname;					      \
	tar -chz -f $$distname.tar.gz $$distname;			      \
	rm -fr $$distname