File: Makefile.in

package info (click to toggle)
adjtimex 1.29-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,016 kB
  • sloc: ansic: 10,853; sh: 311; makefile: 180
file content (79 lines) | stat: -rw-r--r-- 2,018 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
#### Start of system configuration section.             -*-makefile-*- ####
 srcdir = .
VPATH = .

VERSION=1.29

CC = @CC@
CFLAGS += @CFLAGS@ -Wall
prefix = @prefix@
man1dir=@mandir@/man1
exec_prefix = @exec_prefix@
bindir=/sbin
datadir = @datadir@
datarootdir = @datarootdir@

INSTALL=@INSTALL@


# 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. ####

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

all: adjtimex adjtimex.lsm Makefile

configure config.h.in: configure.in
	autoconf
	autoheader
Makefile config.h: Makefile.in config.h.in
	./configure

adjtimex: adjtimex.c mat.o config.h Makefile
	$(CC) $(CFLAGS) -I. -DVERSION=\"$(VERSION)\" -o adjtimex  \
		 adjtimex.c mat.o -lm $(LDFLAGS) $(CPPFLAGS)

mat.o: mat.c
	$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -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

adjtimex.lsm: adjtimex.lsm.in Makefile
	sed -e 's/@VERSION@/$(VERSION)/'	\
	  -e "s/@DATE@/`date +%Y-%m-%d`/"	\
	  adjtimex.lsm.in >adjtimex.lsm

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