chiark / gitweb /
compile fixes for inotify
[inn-innduct.git] / scripts / Makefile
1 ##  $Id: Makefile 7739 2008-04-06 09:38:31Z iulius $
2 ##
3 ##  Files that can be handled by fixscript (and need to be so handled) need
4 ##  a rule to build them from the .in version, and then all files need an
5 ##  installation rule.  Do the installation rules individually so as to
6 ##  avoid needless work if the files haven't changed.  We also need lists
7 ##  of files to build and files to install for the all and install rules.
8
9 include ../Makefile.global
10
11 top           = ..
12
13 ALL           = innmail innreport innstat innupgrade innwatch rc.news \
14                 scanlogs simpleftp tally.control writelog
15
16 EXTRA         = inncheck innshellvars innshellvars.pl innshellvars.tcl \
17                 news.daily
18
19 INSTALLED     = $(D)$(PATHBIN)/inncheck         \
20                 $(D)$(PATHBIN)/innmail          \
21                 $(D)$(PATHBIN)/innreport        \
22                 $(D)$(PATHBIN)/innstat          \
23                 $(D)$(PATHBIN)/innupgrade       \
24                 $(D)$(PATHBIN)/innwatch         \
25                 $(D)$(PATHBIN)/news.daily       \
26                 $(D)$(PATHBIN)/rc.news          \
27                 $(D)$(PATHBIN)/scanlogs         \
28                 $(D)$(PATHBIN)/simpleftp        \
29                 $(D)$(PATHBIN)/tally.control    \
30                 $(D)$(PATHBIN)/writelog         \
31                 $(D)$(PATHLIB)/innreport_inn.pm \
32                 $(D)$(PATHLIB)/innshellvars     \
33                 $(D)$(PATHLIB)/innshellvars.pl  \
34                 $(D)$(PATHLIB)/innshellvars.tcl
35
36 all: $(ALL) $(EXTRA)
37
38 install: all
39         for F in innmail innreport simpleftp ; do \
40             $(CP_XPUB) $$F $D$(PATHBIN)/$$F ; \
41         done
42         for F in inncheck innstat innupgrade innwatch news.daily rc.news \
43                  scanlogs tally.control writelog ; do \
44             $(CP_XPRI) $$F $D$(PATHBIN)/$$F ; \
45         done
46         for F in innreport_inn.pm innshellvars innshellvars.pl \
47                  innshellvars.tcl ; do \
48             $(CP_RPUB) $$F $D$(PATHLIB)/$$F ; \
49         done
50
51 clean:
52         rm -f $(ALL)
53
54 clobber distclean: clean
55         rm -f $(EXTRA)
56
57 depend:
58
59 profiled: all
60
61 $(EXTRA) $(FIXSCRIPT):
62         @echo Run configure before running make.  See INSTALL for details.
63         @exit 1
64
65
66 ##  Build rules.
67
68 FIX             = $(FIXSCRIPT)
69
70 innmail:        innmail.in       $(FIX) ; $(FIX) innmail.in
71 innreport:      innreport.in     $(FIX) ; $(FIX) innreport.in
72 innstat:        innstat.in       $(FIX) ; $(FIX) innstat.in
73 innupgrade:     innupgrade.in    $(FIX) ; $(FIX) -i innupgrade.in
74 innwatch:       innwatch.in      $(FIX) ; $(FIX) innwatch.in
75 rc.news:        rc.news.in       $(FIX) ; $(FIX) rc.news.in
76 scanlogs:       scanlogs.in      $(FIX) ; $(FIX) scanlogs.in
77 simpleftp:      simpleftp.in     $(FIX) ; $(FIX) -i simpleftp.in
78 tally.control:  tally.control.in $(FIX) ; $(FIX) tally.control.in
79 writelog:       writelog.in      $(FIX) ; $(FIX) writelog.in