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
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
21 UTIL/make_arcs make CC=$(CC) -f Makefile
23 #******************************************************
24 # dirs - Make Install Directories
27 -mkdir -p $(INSTALL_DIR) $(ARC_DIR) $(BIN_DIR)
28 -mkdir -p $(DOC_DIR) $(LIB_DIR) $(MAN1_DIR) $(MAN3_DIR)
30 -chmod 755 $(CONF_DIR)
32 #******************************************************
33 # config - Configure DQS
36 cd CONFIG;make clean;make CC=$(CC);./config;cd ..
38 #******************************************************
39 # config - Configure DQS
42 $(CC) -o CONFIG/host_ck CONFIG/host_ck.c;CONFIG/host_ck
44 #******************************************************
45 # unconfig - Unconfigure DQS
48 cd CONFIG;make clean;make CC=$(CC);./config -u;cd ..
50 #******************************************************
51 # sets up an arc dependant subdirectory under DQS/ARCS
52 # ans builds the DQS checpointing library
55 UTIL/make_arcs make CC=$(CC) -f Makefile $@
57 #******************************************************
58 # install the default distribution
61 UTIL/make_arcs make CC=$(CC) -f Makefile $@ \
62 BIN_DIR=$(BIN_DIR) DQS_ROOT=$(DQS_ROOT) \
63 DQS_SYSGRP=$(DQS_SYSGRP)
65 #******************************************************
66 # install the sample conf files
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
76 #******************************************************
79 installall: installbin installconf
82 #******************************************************
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
92 ######################################################
93 ######################################################
94 ######################################################
95 # multi-architecture makes
97 #******************************************************
98 # pall - Parrallel Make
99 # uses "rsh" to make binaries for multiple arcs concurrently
101 # output from all makes placed in the file OUT
109 @$(MAKE) -f Makefile rdist
110 @cd UTIL;$(MAKE) -f Makefile pmake
111 UTIL/pmake .PMakefile OUT
113 #******************************************************
114 # pdirs - Parallel Make Dirs
117 @cd UTIL;$(MAKE) -f Makefile pmake
118 UTIL/pmake .PMakefile OUT dirs
120 #******************************************************
121 #pinstallbin - Parallel Install Bin
124 @cd UTIL;$(MAKE) -f Makefile pmake
125 UTIL/pmake .PMakefile OUT installbin
127 #******************************************************
128 # pinstallall - Parallel Installal
131 @cd UTIL;$(MAKE) -f Makefile pmake
132 UTIL/pmake .PMakefile OUT installall
134 ######################################################
135 ######################################################
136 ######################################################
137 # the rest of these are for development only
138 # read the disclaimers before using them!
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!
148 cd SRC; make -f Makefile $@
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!
156 cd DOC/readme; make CC=$(CC) -f Makefile $@
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!
163 everything: dqs ckpt installbin \
164 installlib installman1 \
165 installman3 installdoc
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!
172 distribution: readme doc clean
174 #******************************************************
177 cp DQS.tar.gz /ds9/a/users/queuing/DQS.tar.gz.`date +%m.%d.%y.%H:%M`
179 #******************************************************
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`
186 #******************************************************
189 cd .. ;/usr/ucb/rdist -f DQS/.distfile
191 #******************************************************
194 cd ..;/usr/local/bin/findsrc -dy -oDQS/manifest DQS;
196 #******************************************************
199 cd ..;tar -cvf DQS.tar DQS; mv DQS.tar DQS; \
200 cd DQS;compress DQS.tar
202 #******************************************************
205 cd ..;tar -cvf DQS.tar DQS; mv DQS.tar DQS; \
206 cd DQS;/usr/local/bin/gzip DQS.tar
208 #******************************************************
211 gnutar -cvMf /dev/fd0 DQS.tar.gz
213 #******************************************************
216 gnutar -cvMf /dev/fd1 DQS.tar.gz
218 #******************************************************
222 gnutar -czvf CVS.tar.gz /margit/c/users/dqs/CVS
223 gnutar -cvMf /dev/fd0 CVS.tar.gz