Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # Don't edit Makefile! Use conf-* for configuration.
2 #
3 # Generated by spac see http://untroubled.org/spac/
4
5 SHELL=/bin/sh
6
7 DEFAULT: all
8
9 all: libraries programs docs
10
11 bcron-exec: bcron-exec.o load bcron.a
12 ./load bcron-exec bcron.a -lbg
13
14 bcron-exec.8.html: bcron-exec.8
15 man --html='cat %s' ./bcron-exec.8 > bcron-exec.8.html
16
17 bcron-exec.o: compile bcron-exec.c bcron.h conf_sendmail.c
18 ./compile bcron-exec.c
19
20 bcron-sched: bcron-sched.o load bcron.a
21 ./load bcron-sched bcron.a -lbg
22
23 bcron-sched.8.html: bcron-sched.8
24 man --html='cat %s' ./bcron-sched.8 > bcron-sched.8.html
25
26 bcron-sched.o: compile bcron-sched.c bcron.h
27 ./compile bcron-sched.c
28
29 bcron-spool: bcron-spool.o load bcron.a
30 ./load bcron-spool bcron.a -lbg
31
32 bcron-spool.8.html: bcron-spool.8
33 man --html='cat %s' ./bcron-spool.8 > bcron-spool.8.html
34
35 bcron-spool.o: compile bcron-spool.c bcron.h
36 ./compile bcron-spool.c
37
38 bcron-start: bcron-start.o load bcron.a
39 ./load bcron-start bcron.a -lbg
40
41 bcron-start.8.html: bcron-start.8
42 man --html='cat %s' ./bcron-start.8 > bcron-start.8.html
43
44 bcron-start.o: compile bcron-start.c bcron.h
45 ./compile bcron-start.c
46
47 bcron-update: bcron-update.o load bcron.a
48 ./load bcron-update bcron.a -lbg
49
50 bcron-update.8.html: bcron-update.8
51 man --html='cat %s' ./bcron-update.8 > bcron-update.8.html
52
53 bcron-update.o: compile bcron-update.c bcron.h
54 ./compile bcron-update.c
55
56 bcron.a: makelib chdir.o connection.o crontab.o crontabs.o job.o job_dump.o ministat.o sendpacket.o tempfile.o time.o timespec-next.o timespec-parse.o
57 ./makelib bcron.a chdir.o connection.o crontab.o crontabs.o job.o job_dump.o ministat.o sendpacket.o tempfile.o time.o timespec-next.o timespec-parse.o
58
59 bcron.html: bcron.texi
60 makeinfo --html --no-split bcron.texi
61
62 bcron.info: bcron.texi
63 makeinfo bcron.texi
64
65 bcrontab: bcrontab.o load bcron.a
66 ./load bcrontab bcron.a -lbg-cli -lbg
67
68 bcrontab.1.html: bcrontab.1
69 man --html='cat %s' ./bcrontab.1 > bcrontab.1.html
70
71 bcrontab.o: compile bcrontab.c bcron.h
72 ./compile bcrontab.c
73
74 chdir.o: compile chdir.c bcron.h
75 ./compile chdir.c
76
77 clean: TARGETS
78 rm -f `cat TARGETS`
79
80 clean-spac: clean AUTOFILES
81 rm -f `cat AUTOFILES`
82
83 compile: conf-cc
84 ( echo '#!/bin/sh'; \
85 echo 'source=$$1; shift'; \
86 echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
87 echo exec `head -n 1 conf-cc` -I. '-o $${base}.o -c $$source $${1+"$$@"}'; \
88 ) >compile
89 chmod 755 compile
90
91 conf_sendmail.c: conf-sendmail
•92 python3 -c 'import shlex; line=shlex.split(open("conf-sendmail").readline().strip()); print("const char* sendmail[] = { "+",".join(["\"%s\""%a for a in line])+",NULL };")' >conf_sendmail.c
93
94 connection.o: compile connection.c bcron.h
95 ./compile connection.c
96
97 crontab.5.html: crontab.5
98 man --html='cat %s' ./crontab.5 > crontab.5.html
99
100 crontab.o: compile crontab.c bcron.h
101 ./compile crontab.c
102
103 crontabs.o: compile crontabs.c bcron.h
104 ./compile crontabs.c
105
106 docs: bcron.info bcron.html crontab.5.html bcrontab.1.html bcron-spool.8.html bcron-sched.8.html bcron-exec.8.html bcron-start.8.html bcron-update.8.html
107
108 install: INSTHIER conf-bin conf-man
109 bg-installer -v <INSTHIER
110 bg-installer -c <INSTHIER
111
112 job.o: compile job.c bcron.h
113 ./compile job.c
114
115 job_dump.o: compile job_dump.c bcron.h
116 ./compile job_dump.c
117
118 libraries: bcron.a
119
120 load: conf-ld
121 ( echo '#!/bin/sh';\
122 echo 'main="$$1"; shift';\
123 echo exec `head -n 1 conf-ld` -L. '-o "$$main" "$$main.o" $${1+"$$@"}'; \
124 ) >load
125 chmod 755 load
126
127 makelib:
128 ( echo '#!/bin/sh'; \
129 echo 'lib="$$1"; shift';\
130 echo 'rm -f "$$lib"';\
131 echo 'ar cr "$$lib" $${1+"$$@"}';\
132 echo 'ranlib "$$lib"';\
133 ) >makelib
134 chmod 755 makelib
135
136 ministat.o: compile ministat.c bcron.h
137 ./compile ministat.c
138
139 programs: bcrontab bcron-update bcron-spool bcron-start bcron-sched bcron-exec test-sched
140
141 sendpacket.o: compile sendpacket.c bcron.h
142 ./compile sendpacket.c
143
144 tempfile.o: compile tempfile.c bcron.h
145 ./compile tempfile.c
146
147 test-sched: test-sched.o load bcron.a
148 ./load test-sched bcron.a -lbg-cli -lbg
149
150 test-sched.o: compile test-sched.c bcron.h
151 ./compile test-sched.c
152
153 time.o: compile time.c bcron.h
154 ./compile time.c
155
156 timespec-next.o: compile timespec-next.c bcron.h
157 ./compile timespec-next.c
158
159 timespec-parse.o: compile timespec-parse.c bcron.h
160 ./compile timespec-parse.c
161