"Fossies" - the Fresh Open Source Software Archive

Member "adjtimex-1.29/Makefile.in" (17 Apr 2010, 1961 Bytes) of archive /linux/misc/old/adjtimex_1.29.orig.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #### Start of system configuration section.             -*-makefile-*- ####
    2  srcdir = .
    3 VPATH = .
    4 
    5 VERSION=1.29
    6 
    7 CFLAGS = @CFLAGS@ -Wall
    8 prefix = @prefix@
    9 man1dir=@mandir@/man1
   10 exec_prefix = @exec_prefix@
   11 bindir=/sbin
   12 datadir = @datadir@
   13 datarootdir = @datarootdir@
   14 
   15 INSTALL=@INSTALL@
   16 
   17 
   18 # Extension (not including `.') for the manual page filenames.
   19 manext = 8
   20 # Where to put the manual pages.
   21 mandir = $(prefix)/share/man/man$(manext)
   22 
   23 #### End of system configuration section. ####
   24 
   25 SRC = adjtimex.c adjtimex.8 mat.c mat.h install-sh configure.in		\
   26  configure Makefile.in config.h.in README README.ru adjtimex.lsm	\
   27   adjtimex.lsm.in COPYING COPYRIGHT ChangeLog
   28 
   29 all: adjtimex adjtimex.lsm Makefile
   30 
   31 configure config.h.in: configure.in
   32 	autoconf
   33 	autoheader
   34 Makefile config.h: Makefile.in config.h.in
   35 	./configure
   36 
   37 adjtimex: adjtimex.c mat.o config.h Makefile
   38 	$(CC) $(CFLAGS) -I. -DVERSION=\"$(VERSION)\" -o adjtimex  \
   39 		 adjtimex.c mat.o -lm
   40 
   41 mat.o: mat.c
   42 	$(CC) $(CFLAGS) -c mat.c
   43 
   44 install: all
   45 	$(INSTALL) -g bin -m 755 -o root adjtimex $(bindir)/adjtimex
   46 	$(INSTALL) -d -g root -m 755 -o root $(mandir)
   47 	-$(INSTALL) -g root -m 644 -o root $(srcdir)/adjtimex.8 \
   48 		$(mandir)/adjtimex.$(manext)
   49 
   50 uninstall:
   51 	rm -f $(bindir)/adjtimex $(mandir)/adjtimex.$(manext)
   52 
   53 clean: 
   54 	rm -f core *.o
   55 veryclean: clean
   56 	rm -f adjtimex
   57 
   58 adjtimex.lsm: adjtimex.lsm.in Makefile
   59 	sed -e 's/@VERSION@/$(VERSION)/'	\
   60 	  -e "s/@DATE@/`date +%Y-%m-%d`/"	\
   61 	  adjtimex.lsm.in >adjtimex.lsm
   62 
   63 shar: $(SRC)
   64 	distname=adjtimex-$(VERSION);		\
   65 	shar $(SRC) >$$distname.shar 
   66 
   67 dist: $(SRC)
   68 	distname=adjtimex-$(VERSION);					      \
   69 	rm -fr $$distname;						      \
   70 	mkdir $$distname;						      \
   71 	for file in $(SRC); do						      \
   72 	  ln $$file $$distname/$$file					      \
   73 	  || { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
   74 	done;								      \
   75 	chmod -R a+rX $$distname;					      \
   76 	tar -chz -f $$distname.tar.gz $$distname;			      \
   77 	rm -fr $$distname
   78