1997-09-21 23:13:10 +00:00
|
|
|
#
|
|
|
|
# This file is intended for use with dmake. There are constructs in
|
|
|
|
# here that (as yet) make it unsuitable to be used on the GS.
|
|
|
|
#
|
1997-12-22 01:11:08 +00:00
|
|
|
# $Id: Makefile,v 1.5 1997/12/22 01:11:08 gdr Exp $
|
1997-09-21 23:13:10 +00:00
|
|
|
#
|
|
|
|
XFER = xfer
|
|
|
|
TMP = /tmp/gnobuild
|
|
|
|
UDL = /usr/local/bin/udl
|
|
|
|
NULIB = /usr/local/bin/nulib
|
|
|
|
|
|
|
|
XFER_LIST= \
|
|
|
|
$(XFER)/HFSinclude.shk \
|
|
|
|
$(XFER)/NOTES.shk \
|
|
|
|
$(XFER)/bin.shk \
|
|
|
|
$(XFER)/build.tools.shk \
|
|
|
|
$(XFER)/include.shk \
|
|
|
|
$(XFER)/lib.shk \
|
|
|
|
$(XFER)/orcacdefs.shk \
|
|
|
|
$(XFER)/root.shk \
|
|
|
|
$(XFER)/sbin.shk \
|
|
|
|
$(XFER)/usr.bin.shk \
|
1997-09-30 05:35:14 +00:00
|
|
|
$(XFER)/usr.orcabin.shk \
|
|
|
|
$(XFER)/usr.man.shk \
|
1997-10-30 04:23:37 +00:00
|
|
|
$(XFER)/usr.sbin.shk \
|
1997-09-30 05:35:14 +00:00
|
|
|
$(XFER)/verbatim.shk
|
1997-09-21 23:13:10 +00:00
|
|
|
|
|
|
|
NOT_YET= \
|
|
|
|
$(XFER)/libexec.shk \
|
|
|
|
$(XFER)/sys.shk \
|
|
|
|
$(XFER)/usr.sbin.shk
|
|
|
|
|
|
|
|
srcxfer: $(XFER_LIST)
|
|
|
|
|
1997-12-22 01:11:08 +00:00
|
|
|
ROOTFILES = Makefile binconst.mk binrelease.mk binrules.mk paths.mk prog.mk
|
1997-09-21 23:13:10 +00:00
|
|
|
|
|
|
|
$(XFER)/root.shk: $(ROOTFILES)
|
|
|
|
@echo "making $@"; \
|
1997-09-30 05:35:14 +00:00
|
|
|
$(RM) -f $@; \
|
1997-09-21 23:13:10 +00:00
|
|
|
[ -d $(XFER) ] || mkdir -p $(XFER); \
|
|
|
|
if [ -d $(TMP) ]; then \
|
|
|
|
echo "$(TMP) exists. Aborted"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
cwd=`pwd`; \
|
|
|
|
mkdir -p $(TMP); \
|
1997-12-22 01:11:08 +00:00
|
|
|
cp -r -p $(ROOTFILES) $(TMP); \
|
1997-09-21 23:13:10 +00:00
|
|
|
$(RM) -rf `find $(TMP) -name CVS -print `; \
|
|
|
|
$(UDL) -gR $(TMP); \
|
1997-12-22 01:11:08 +00:00
|
|
|
(cd $(TMP); $(NULIB) -cf $$cwd/$@ $(ROOTFILES) ); \
|
1997-09-21 23:13:10 +00:00
|
|
|
$(RM) -rf $(TMP)
|
|
|
|
|
|
|
|
# make sure the filename fits
|
|
|
|
$(XFER)/usr.orcabin.shk: $(XFER)/usr.orca.bin.shk
|
1997-11-01 19:49:27 +00:00
|
|
|
mv $< $@
|
1997-09-21 23:13:10 +00:00
|
|
|
|
|
|
|
# .PHONY: $(XFER_LIST)
|
|
|
|
|
|
|
|
$(XFER)/%.shk:
|
|
|
|
@echo "making $@"; \
|
1997-09-30 05:35:14 +00:00
|
|
|
$(RM) -f $@; \
|
1997-09-21 23:13:10 +00:00
|
|
|
[ -d $(XFER) ] || mkdir -p $(XFER); \
|
|
|
|
if [ -d $(TMP) ]; then \
|
|
|
|
echo "$(TMP) exists. Aborted"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
mkdir -p $(TMP); \
|
|
|
|
cp -r -p $* $(TMP); \
|
|
|
|
$(RM) -rf `find $(TMP) -name CVS -print `; \
|
|
|
|
$(UDL) -gR $(TMP); \
|
|
|
|
(cd $(TMP); $(NULIB) -cf $*.shk $*); \
|
|
|
|
mv $(TMP)/$*.shk $(XFER); \
|
|
|
|
$(RM) -rf $(TMP)
|
|
|
|
|
|
|
|
|
|
|
|
# /bin/true $*;
|