source: trunk/athena/etc/newsyslog/Makefile.in @ 13769

Revision 13769, 2.9 KB checked in by danw, 25 years ago (diff)
compile with warnings
Line 
1# $Id: Makefile.in,v 1.6 1999-10-19 20:22:27 danw Exp $
2
3### programs used in building/installing for Athena
4
5SHELL=/bin/sh
6
7CC=@CC@
8LN_S=@LN_S@
9
10INSTALL=install
11STRIP=strip
12MKDIRHIER=mkdirhier
13
14### various flags
15
16DEFS=@DEFS@
17LIBS=@LIBS@
18
19# DEBUG=-DDEBUG -Wall
20
21CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS} $(DEBUG) $(DEFS)
22LDFLAGS=@LDFLAGS@ $(DEBUG) $(LIBS)
23
24### release rules
25
26all: newsyslog
27
28newsyslog: newsyslog.o signames.o
29        $(CC) newsyslog.o signames.o $(LDFLAGS) -o $@
30
31install:
32        -$(MKDIRHIER) $(DESTDIR)/etc/athena
33        $(INSTALL) -m 755 newsyslog $(DESTDIR)/etc/athena
34        -$(STRIP) $(DESTDIR)/etc/athena/newsyslog
35        -$(MKDIRHIER) $(DESTDIR)/usr/athena/man/man8
36        -$(MKDIRHIER) $(DESTDIR)/usr/athena/man/man5
37        $(INSTALL) -m 644 newsyslog.8      $(DESTDIR)/usr/athena/man/man8
38        $(INSTALL) -m 644 newsyslog.conf.5 $(DESTDIR)/usr/athena/man/man5
39
40clean:
41        rm -f *~ *.o newsyslog sigd *.pure *.pcv
42
43###### everything below should be irrelevant to the Athena release
44
45### programs used only during development
46
47SYNCTREE=/usr/athena/etc/synctree
48NROFF=groff -Tascii
49LESS=less
50PURIFY=purify
51PURECOV=purecov
52GTOUCH=gtouch
53
54ROOT=/afs/zone.mit.edu/test/newsyslog
55
56### development-only rules
57
58dev: sync bld
59
60# DECstations suck...
61sync:
62#       if [ ! -d ${ROOT}/@sys ]; then exit -1; fi
63        ${SYNCTREE} -s ${ROOT}/src -d ${ROOT}/@sys
64
65newsyslog.pure: newsyslog.o signames.o
66        $(PURIFY) $(PURECOV) $(CC) $^ $(LDFLAGS) -o $@
67
68sigd: sigd.o signames.o
69        $(CC) $^ $(LDFLAGS) -o $@
70
71## manpage preview
72prev8: newsyslog.8
73        $(NROFF) -man $^ | $(LESS)
74prev5: newsyslog.conf.5
75        $(NROFF) -man $^ | $(LESS)
76
77## tests (works with gmake only, so it's commented out)
78
79#! tests/0k:
80#!      ${GTOUCH} $@
81#! tests/%k: tests/LARGE
82#!      dd if=$< of=$@ ibs=1024 count=$*
83#! tests/LARGE:
84#!      rm -f $@
85#!      for i in /dev/zero /vmunix; do          \
86#!          if [ -r "$$i" ]; then               \
87#!              $(LN_S) "$$i" $@;               \
88#!              break 2;                        \
89#!          fi                                  \
90#!      done
91#!
92#! FORCE:
93#! tests/empty:
94#!
95#! tests/%.now: tests/% FORCE
96#! #    rm -f $@
97#!      if [ -r $< ]; then cat $< >> $@; fi
98#!      ${GTOUCH} -d now $@
99#! tests/%.yesterday: tests/% FORCE
100#! #    rm -f $@
101#!      if [ -r $< ]; then cat $< >> $@; fi
102#!      ${GTOUCH} -d yesterday $@
103#!
104#! .PHONY: test-files test-clean
105#!
106#! FILES.empty= tests/empty.now tests/empty.yesterday
107#! FILES.0k= tests/0k.now # tests/1k.yesterday
108#! FILES.1k= tests/1k.now # tests/1k.yesterday
109#! FILES.2k= tests/2k.now # tests/2k.yesterday
110#! ALL_FILES=${FILES.0k} ${FILES.1k}
111#!
112#! test-files: ${ALL_FILES}
113#!
114#! test-clean:
115#!      rm -f tests/*
116#!
117#! test: test-files
118#!      ./run_sigd 1 USR1 HUP ${ALL_FILES} &
119#!      ./run_sigd 2 USR2 HUP ${ALL_FILES} &
120#!      ./newsyslog -vvrf test.conf -t 5
121#!      kill -HUP `cat tests/sigd1.pid tests/sigd2.pid`
122#!
123#! mock-test:
124#!      ./newsyslog -nvvvrf test.conf
125#!
126#! pure-test: test-files
127#!      ./run_sigd 1 USR1 HUP ${ALL_FILES} &
128#!      ./run_sigd 2 USR2 HUP ${ALL_FILES} &
129#!      ./newsyslog.pure -vvrf test.conf
130#!      kill -HUP `cat tests/sigd1.pid tests/sigd2.pid`
Note: See TracBrowser for help on using the repository browser.