File: Makefile

package info (click to toggle)
inn2 2.4.5-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,912 kB
  • ctags: 7,860
  • sloc: ansic: 85,104; perl: 11,427; sh: 9,863; makefile: 2,498; yacc: 1,563; python: 298; lex: 252; tcl: 7
file content (79 lines) | stat: -rw-r--r-- 2,417 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
##  $Id: Makefile 7739 2008-04-06 09:38:31Z iulius $
##
##  Files that can be handled by fixscript (and need to be so handled) need
##  a rule to build them from the .in version, and then all files need an
##  installation rule.  Do the installation rules individually so as to
##  avoid needless work if the files haven't changed.  We also need lists
##  of files to build and files to install for the all and install rules.

include ../Makefile.global

top	      = ..

ALL           = innmail innreport innstat innupgrade innwatch rc.news \
		scanlogs simpleftp tally.control writelog

EXTRA         = inncheck innshellvars innshellvars.pl innshellvars.tcl \
		news.daily

INSTALLED     = $(D)$(PATHBIN)/inncheck		\
		$(D)$(PATHBIN)/innmail		\
		$(D)$(PATHBIN)/innreport	\
		$(D)$(PATHBIN)/innstat		\
		$(D)$(PATHBIN)/innupgrade	\
		$(D)$(PATHBIN)/innwatch		\
		$(D)$(PATHBIN)/news.daily	\
		$(D)$(PATHBIN)/rc.news		\
		$(D)$(PATHBIN)/scanlogs		\
		$(D)$(PATHBIN)/simpleftp	\
		$(D)$(PATHBIN)/tally.control	\
		$(D)$(PATHBIN)/writelog		\
		$(D)$(PATHLIB)/innreport_inn.pm	\
		$(D)$(PATHLIB)/innshellvars	\
		$(D)$(PATHLIB)/innshellvars.pl	\
		$(D)$(PATHLIB)/innshellvars.tcl

all: $(ALL) $(EXTRA)

install: all
	for F in innmail innreport simpleftp ; do \
	    $(CP_XPUB) $$F $D$(PATHBIN)/$$F ; \
	done
	for F in inncheck innstat innupgrade innwatch news.daily rc.news \
	         scanlogs tally.control writelog ; do \
	    $(CP_XPRI) $$F $D$(PATHBIN)/$$F ; \
	done
	for F in innreport_inn.pm innshellvars innshellvars.pl \
	         innshellvars.tcl ; do \
	    $(CP_RPUB) $$F $D$(PATHLIB)/$$F ; \
	done

clean:
	rm -f $(ALL)

clobber distclean: clean
	rm -f $(EXTRA)

depend:

profiled: all

$(EXTRA) $(FIXSCRIPT):
	@echo Run configure before running make.  See INSTALL for details.
	@exit 1


##  Build rules.

FIX             = $(FIXSCRIPT)

innmail:	innmail.in       $(FIX)	; $(FIX) innmail.in
innreport:	innreport.in     $(FIX)	; $(FIX) innreport.in
innstat:	innstat.in       $(FIX)	; $(FIX) innstat.in
innupgrade:	innupgrade.in    $(FIX) ; $(FIX) -i innupgrade.in
innwatch:	innwatch.in      $(FIX)	; $(FIX) innwatch.in
rc.news:	rc.news.in       $(FIX)	; $(FIX) rc.news.in
scanlogs:	scanlogs.in      $(FIX)	; $(FIX) scanlogs.in
simpleftp:	simpleftp.in     $(FIX)	; $(FIX) -i simpleftp.in
tally.control:	tally.control.in $(FIX)	; $(FIX) tally.control.in
writelog:	writelog.in      $(FIX)	; $(FIX) writelog.in