"Fossies" - the Fresh Open Source Software Archive 
Member "rman-3.2/Makefile" (26 Jul 2003, 4302 Bytes) of package /linux/www/old/rman-3.2.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 #
2 # Makefile for PolyglotMan
3 # It's helpful to read the README-rman.txt file first.
4 # You should read over all parts of this file,
5 # down to the "you shouldn't modify" line
6 #
7 # Tom Phelps (phelps@ACM.org)
8 #
9
10
11 ### you need to localize the paths on these lines
12
13 # The executable `rman' is placed in BINDIR.
14 # If you're also installing TkMan (available separately--see README-rman.txt),
15 # this must be a directory that's in your bin PATH.
16 # MANDIR holds the man page.
17
18 BINDIR = /opt/local/bin
19 #BINDIR = /usr/local/bin
20 #BINDIR = //C/bin
21 MANDIR = /usr/local/man/man1
22 # popular alternative
23 #BINDIR = /opt/local/bin
24 #MANDIR = /opt/local/man/man1
25
26
27 ### if you have GNU gcc, use these definitions
28 CC = gcc
29 CFLAGS = -O2 -finline-functions
30
31 ### if you just have a standard UNIX, use these instead of GNU.
32 ### CC must be an ANSI C compiler
33
34 #CC = cc
35 #CFLAGS = -O
36
37 # Solaris and SysV people may need this
38 #CFLAGS = -O2 -finline-functions
39
40 # For HP-UX
41 #CC = cc
42 #CFLAGS = -Aa -O
43 # HP-UX 10.20
44 #CFLAGS = -Ae -O
45
46 # DEC Alpha and Ultrix, -std1 needed to conform to ANSI C
47 #CC = cc
48 #CFLAGS = -std1 -O3 -Olimit 1000
49
50
51 # list of valid volume numbers and letters
52 # you can also set these at runtime with -V
53 VOLLIST = "1:2:3:4:5:6:7:8:9:o:l:n:p"
54 # SCO Unix has expanded set of volume letters
55 #VOLLIST = "1:2:3:4:5:6:7:8:9:o:l:n:p:C:X:S:L:M:F:G:A:H"
56 # SGI and UnixWare 2.0
57 #VOLLIST = "1:2:3:4:5:6:7:8:9:o:l:n:p:D"
58
59
60 # the printf strings used to set the HTML <TITLE> and
61 # to set URL hyperlinks to referenced manual pages
62 # can be defined at runtime. The defaults are defined below.
63 # The first %s parameter is the manual page name,
64 # the second the volume/section number.
65 # you can set these at runtime with -l and -r, respectively
66
67 MANTITLEPRINTF = "%s(%s) manual page"
68 # relative link to pregenerated file in same directory
69 MANREFPRINTF = "%s.%s"
70 # on-the-fly through a cgi-bin script
71 #MANREFPRINTF = "/cgi-bin/man2html?%s&%s"
72 #MANREFPRINTF = "/cgi-bin/man2html?m=%s&n=%s"
73
74
75 # # # these lines are probably fine
76
77 CP = cp
78 # or you can use GNU's cp and backup files that are about to be overwritten
79 #CP = cp -b
80 RM = rm
81
82
83 #--------------------------------------------------
84 #
85 # you shouldn't modify anything below here
86 #
87 #--------------------------------------------------
88
89 version = 3.2
90 rman = rman-$(version)
91 srcs = rman.c
92 objs = rman
93 defs = -DVOLLIST='$(VOLLIST)' -DMANTITLEPRINTF='$(MANTITLEPRINTF)' -DMANREFPRINTF='$(MANREFPRINTF)'
94 libs =
95 aux = README-rman.txt Makefile rman.1 site/rman.html CHANGES
96 distrib = $(srcs) $(libs) $(aux) contrib
97
98
99 all: rman
100 @echo 'Files made in current directory.'
101 @echo 'You should "make install".'
102
103 # everyone but me zaps assertions with the -DNDEBUG flag
104 rman: rman.c Makefile
105 $(CC) -DNDEBUG $(defs) -DPOLYGLOTMANVERSION=\"$(version)\" $(CFLAGS) -o rman rman.c
106
107
108 debug:
109 $(CC) $(defs) -DDEBUG -DPOLYGLOTMANVERSION=\"debug\" -g -Wall -o rman rman.c
110
111 prof:
112 quantify -cache-dir=/home/orodruin/h/bair/phelps/spine/rman/cache $(CC) -DNDEBUG $(defs) -DPOLYGLOTMANVERSION=\"QUANTIFY\" -g -o rman rman.c
113
114 install: rman
115 # $(INSTALL) -s rman $(BINDIR)
116 $(RM) -f $(BINDIR)/rman
117 $(CP) rman $(BINDIR)
118 $(RM) -f $(MANDIR)/rman.1
119 $(CP) rman.1 $(MANDIR)
120
121 # test version includes assertions
122 # ginstall rman $(BINDIR)/`arch`
123 test: rman.c Makefile
124 $(CC) $(defs) -DPOLYGLOTMANVERSION=\"$(version)\" $(CFLAGS) -Wall -ansi -pedantic -o rman rman.c
125 ls -l rman
126 ginstall rman $(BINDIR)
127 rman -v
128 rman --help
129 @echo 'Assertion checks:'
130 rman -f html weirdman/hp-tbl.1 > /dev/null
131 rman -f html weirdman/Pnews.1 > /dev/null
132 nroff -man rman.1 | rman -f html > /dev/null
133
134 sww:
135 rm -f rman $(wildcard ~/bin/{sun4,snake,alpha}/rman)
136 rman
137
138 clean:
139 rm -f $(objs)
140
141 dist:
142 rm -rf $(rman)*
143 mkdir $(rman)
144 $(CP) -RH $(distrib) $(rman)
145 # expand -4 rman.c > $(rman)/rman.c
146 rm -f $(rman)/contrib/*~
147 @echo 'gcksum crc length name' > MANIFEST
148 @echo '---------- ------ ----' >> MANIFEST
149 @cksum $(filter-out contrib, $(filter-out %~, $(distrib) $(wildcard contrib/*))) | tee -a MANIFEST
150 mv MANIFEST $(rman)
151 tar chvf $(rman).tar $(rman)
152 gzip -9v $(rman).tar
153 rm -rf $(rman)
154 # ANNOUNCE-rman rman.1
155 @echo "*** Did you remember to ci -l first?"
156
157 uu: tar
158 gznew $(rman).tar.Z
159 echo 'uudecode, gunzip (from GNU), untar' > $(rman).tar.gz.uu
160 uuencode $(rman).tar.gz $(rman).tar.gz >> $(rman).tar.gz.uu