]>
Commit | Line | Data |
---|---|---|
5f71eac1 | 1 | INSTALL_DIR=$(DESTDIR)/usr/bin |
2 | BIN_DIR=$(DESTDIR)/usr/bin | |
3 | CONF_DIR=$(DESTDIR)/etc/dqs | |
4 | DOC_DIR=$(DESTDIR)/usr/share/doc/dqs | |
5 | LIB_DIR=$(DESTDIR)/usr/lib | |
6 | MAN1_DIR=$(DESTDIR)/usr/share/man/man1 | |
7 | MAN3_DIR=$(DESTDIR)/usr/share/man/man3 | |
8 | ROOT=0 | |
9 | DQS_ROOT=0 | |
10 | SYSGRP=0 | |
11 | DQS_SYSGRP=0 | |
12 | CC=cc | |
13 | CFLAGS=-g | |
14 | LFLAGS= | |
15 | # the next line is a "majic-cookie" - don't remove it | |
16 | #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
17 | # sets up an arc dependant subdirectory under DQS/ARCS | |
18 | # ans builds the default distribution | |
19 | ||
20 | default : | |
21 | UTIL/make_arcs make CC=$(CC) -f Makefile | |
22 | ||
23 | #****************************************************** | |
24 | # dirs - Make Install Directories | |
25 | ||
26 | dirs: | |
27 | -mkdir -p $(INSTALL_DIR) $(ARC_DIR) $(BIN_DIR) | |
28 | -mkdir -p $(DOC_DIR) $(LIB_DIR) $(MAN1_DIR) $(MAN3_DIR) | |
29 | -mkdir -p $(CONF_DIR) | |
30 | -chmod 755 $(CONF_DIR) | |
31 | ||
32 | #****************************************************** | |
33 | # config - Configure DQS | |
34 | ||
35 | config: | |
36 | cd CONFIG;make clean;make CC=$(CC);./config;cd .. | |
37 | ||
38 | #****************************************************** | |
39 | # config - Configure DQS | |
40 | ||
41 | host_ck: | |
42 | $(CC) -o CONFIG/host_ck CONFIG/host_ck.c;CONFIG/host_ck | |
43 | ||
44 | #****************************************************** | |
45 | # unconfig - Unconfigure DQS | |
46 | ||
47 | unconfig: | |
48 | cd CONFIG;make clean;make CC=$(CC);./config -u;cd .. | |
49 | ||
50 | #****************************************************** | |
51 | # sets up an arc dependant subdirectory under DQS/ARCS | |
52 | # ans builds the DQS checpointing library | |
53 | ||
54 | ckpt: | |
55 | UTIL/make_arcs make CC=$(CC) -f Makefile $@ | |
56 | ||
57 | #****************************************************** | |
58 | # install the default distribution | |
59 | ||
60 | installbin: dirs | |
61 | UTIL/make_arcs make CC=$(CC) -f Makefile $@ \ | |
62 | BIN_DIR=$(BIN_DIR) DQS_ROOT=$(DQS_ROOT) \ | |
63 | DQS_SYSGRP=$(DQS_SYSGRP) | |
64 | ||
65 | #****************************************************** | |
66 | # install the sample conf files | |
67 | ||
68 | installconf: dirs | |
69 | UTIL/install -o $(DQS_ROOT) -g $(DQS_SYSGRP) \ | |
70 | -m 744 SRC/conf_file $(CONF_DIR)/conf_file | |
71 | UTIL/install -o $(DQS_ROOT) -g $(DQS_SYSGRP) \ | |
72 | -m 744 SRC/resolve_file $(CONF_DIR)/resolve_file | |
73 | UTIL/install -o $(DQS_ROOT) -g $(DQS_SYSGRP) \ | |
74 | -m 700 SRC/key_file $(CONF_DIR)/key_file | |
75 | ||
76 | #****************************************************** | |
77 | # installall | |
78 | ||
79 | installall: installbin installconf | |
80 | ||
81 | ||
82 | #****************************************************** | |
83 | clean: | |
84 | rm -r -f ARCS | |
85 | cd CONFIG; make -f Makefile clean | |
86 | cd SRC; make -f Makefile clean | |
87 | cd UTIL; make -f Makefile clean | |
88 | cd UTIL/TEST; make -f Makefile clean | |
89 | rm -f *~ manifest *.out Part* *.tar *.Z *.gz OUT core typescript | |
90 | rm -r -f CVS.tar.gz CONFIG/usr | |
91 | ||
92 | ###################################################### | |
93 | ###################################################### | |
94 | ###################################################### | |
95 | # multi-architecture makes | |
96 | ||
97 | #****************************************************** | |
98 | # pall - Parrallel Make | |
99 | # uses "rsh" to make binaries for multiple arcs concurrently | |
100 | # see .PMakefile | |
101 | # output from all makes placed in the file OUT | |
102 | # ex: | |
103 | # make pall | |
104 | # make pdirs | |
105 | # make pinstallbin | |
106 | # make pinstallall | |
107 | ||
108 | pall: | |
109 | @$(MAKE) -f Makefile rdist | |
110 | @cd UTIL;$(MAKE) -f Makefile pmake | |
111 | UTIL/pmake .PMakefile OUT | |
112 | ||
113 | #****************************************************** | |
114 | # pdirs - Parallel Make Dirs | |
115 | ||
116 | pdirs: | |
117 | @cd UTIL;$(MAKE) -f Makefile pmake | |
118 | UTIL/pmake .PMakefile OUT dirs | |
119 | ||
120 | #****************************************************** | |
121 | #pinstallbin - Parallel Install Bin | |
122 | ||
123 | pinstallbin: | |
124 | @cd UTIL;$(MAKE) -f Makefile pmake | |
125 | UTIL/pmake .PMakefile OUT installbin | |
126 | ||
127 | #****************************************************** | |
128 | # pinstallall - Parallel Installal | |
129 | ||
130 | pinstallall: | |
131 | @cd UTIL;$(MAKE) -f Makefile pmake | |
132 | UTIL/pmake .PMakefile OUT installall | |
133 | ||
134 | ###################################################### | |
135 | ###################################################### | |
136 | ###################################################### | |
137 | # the rest of these are for development only | |
138 | # read the disclaimers before using them! | |
139 | ||
140 | #****************************************************** | |
141 | # builds the user_interface and design docs. | |
142 | # also builds a set of DQS function man pages | |
143 | # and reference docs. | |
144 | # DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS! | |
145 | # otherwise you will trash the preformatted docs! | |
146 | ||
147 | doc: | |
148 | cd SRC; make -f Makefile $@ | |
149 | ||
150 | #****************************************************** | |
151 | # make the readme file(already done for distribution) | |
152 | # DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS! | |
153 | # otherwise you will trash the preformatted docs! | |
154 | ||
155 | readme: | |
156 | cd DOC/readme; make CC=$(CC) -f Makefile $@ | |
157 | ||
158 | #****************************************************** | |
159 | # this is really just for development | |
160 | # DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS! | |
161 | # otherwise you will trash the preformatted docs! | |
162 | ||
163 | everything: dqs ckpt installbin \ | |
164 | installlib installman1 \ | |
165 | installman3 installdoc | |
166 | ||
167 | #****************************************************** | |
168 | # this is really just for development | |
169 | # DON'T DO THIS UNLESS YOU HAVE LATEX and DVIPS! | |
170 | # otherwise you will trash the preformatted docs! | |
171 | ||
172 | distribution: readme doc clean | |
173 | ||
174 | #****************************************************** | |
175 | ||
176 | backup: gzip | |
177 | cp DQS.tar.gz /ds9/a/users/queuing/DQS.tar.gz.`date +%m.%d.%y.%H:%M` | |
178 | ||
179 | #****************************************************** | |
180 | ||
181 | backupcvs: | |
182 | cd /margit/c/users/dqs;tar -cvf CVS.tar CVS; \ | |
183 | rm -f CVS.tar.gz; /usr/local/bin/gzip CVS.tar; \ | |
184 | cp CVS.tar.gz /ds9/a/users/queuing/CVS.tar.gz.`date +%m.%d.%y.%H:%M` | |
185 | ||
186 | #****************************************************** | |
187 | ||
188 | rdist: clean | |
189 | cd .. ;/usr/ucb/rdist -f DQS/.distfile | |
190 | ||
191 | #****************************************************** | |
192 | ||
193 | manifest: clean | |
194 | cd ..;/usr/local/bin/findsrc -dy -oDQS/manifest DQS; | |
195 | ||
196 | #****************************************************** | |
197 | ||
198 | tar: manifest | |
199 | cd ..;tar -cvf DQS.tar DQS; mv DQS.tar DQS; \ | |
200 | cd DQS;compress DQS.tar | |
201 | ||
202 | #****************************************************** | |
203 | ||
204 | gzip: manifest | |
205 | cd ..;tar -cvf DQS.tar DQS; mv DQS.tar DQS; \ | |
206 | cd DQS;/usr/local/bin/gzip DQS.tar | |
207 | ||
208 | #****************************************************** | |
209 | ||
210 | fd0: gzip | |
211 | gnutar -cvMf /dev/fd0 DQS.tar.gz | |
212 | ||
213 | #****************************************************** | |
214 | ||
215 | fd1: gzip | |
216 | gnutar -cvMf /dev/fd1 DQS.tar.gz | |
217 | ||
218 | #****************************************************** | |
219 | ||
220 | cvsfd0: | |
221 | rm -f CVS.tar.gz | |
222 | gnutar -czvf CVS.tar.gz /margit/c/users/dqs/CVS | |
223 | gnutar -cvMf /dev/fd0 CVS.tar.gz | |
224 |