1
#### Start of system configuration section. -*-makefile-*- ####
9
man1dir=${prefix}/share/man/man1
10
exec_prefix = ${prefix}
13
INSTALL=/usr/bin/install -c
15
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
21
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
25
# Extension (not including `.') for the manual page filenames.
27
# Where to put the manual pages.
28
mandir = $(prefix)/man/man$(manext)
30
#### End of system configuration section. ####
34
SRC = adjtimex.c adjtimex.8 mat.c mat.h install-sh configure.in \
35
configure Makefile.in README README.ru adjtimex.lsm adjtimex.lsm.in \
36
COPYING COPYRIGHT ChangeLog
38
all: adjtimex adjtimex.lsm
40
adjtimex: adjtimex.c mat.o
41
$(CC) $(CFLAGS) -I. -DVERSION=\"$(VERSION)\" -o adjtimex adjtimex.c \
44
adjtimex.lsm: adjtimex.lsm.in Makefile.in
45
sed -e 's/@VERSION@/$(VERSION)/' \
46
-e "s/@DATE@/`date +%d%b%y|tr [a-z] [A-Z]`/" \
47
adjtimex.lsm.in >adjtimex.lsm
50
$(CC) $(CFLAGS) -c mat.c
53
$(INSTALL_PROGRAM) -g bin -m 755 -o root adjtimex $(bindir)/adjtimex
54
-$(INSTALL) -g man -m 444 -o root $(srcdir)/adjtimex.8 \
55
$(mandir)/adjtimex.$(manext)
58
rm -f $(bindir)/adjtimex $(mandir)/adjtimex.$(manext)
66
distname=adjtimex-$(VERSION); \
67
shar $(SRC) >$$distname.shar
70
distname=adjtimex-$(VERSION); \
73
for file in $(SRC); do \
74
ln $$file $$distname/$$file \
75
|| { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
77
chmod -R a+rX $$distname; \
78
tar -chz -f $$distname.tar.gz $$distname; \