home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
NeXT
/
GnuSource
/
cc-61.0.1
/
Makefile
Wrap
Makefile
|
1992-08-04
|
1KB
|
49 lines
SUBDIRS = as bison cc include
clean all install:
@if [ $(SRCROOT) ]; \
then \
CWD=`pwd`; cd $(DSTROOT); DSTROOT=`pwd`; cd $$CWD; \
for i in `echo $(SUBDIRS)`; \
do \
echo =========== make $@ for $$i =============; \
(cd $$i; $(MAKE) RC_CFLAGS="$(RC_CFLAGS)" \
DSTROOT=$$DSTROOT \
SRCROOT=$(SRCROOT)/$$i \
OBJROOT=$(OBJROOT)/$$i \
SYMROOT=$(SYMROOT)/$$i $@); \
done \
else \
CWD=`pwd`; cd $(DSTROOT); DSTROOT=`pwd`; cd $$CWD; \
for i in `echo $(SUBDIRS)`; \
do \
echo =========== make $@ for $$i =============; \
(cd $$i; $(MAKE) RC_CFLAGS="$(RC_CFLAGS)" \
DSTROOT=$$DSTROOT $@); \
done \
fi
installsrc installGNUsrc: SRCROOT
mkdirs $(SRCROOT)
cp Makefile $(SRCROOT)
for i in `echo $(SUBDIRS)`; \
do \
echo =========== make $@ for $$i =============; \
(cd $$i; $(MAKE) SRCROOT=$$SRCROOT/$$i $@); \
done
installhdrs: $(DSTROOT)
cd include; $(MAKE) DSTROOT=$(DSTROOT) install
$(DSTROOT):
mkdirs $@
SRCROOT:
@if [ -n "${$@}" ]; \
then \
exit 0; \
else \
echo Must define $@; \
exit 1; \
fi