Rev 31 | Blame | Compare with Previous | Last modification | View Log | RSS feed
include ../../../defs.mk
ENVSRCDIRS= ./common\
${OSFAM}/common/common\
${OSFAM}/common/${BLDARCH}\
${OSFAM}/${EXECFORMAT}/common\
${OSFAM}/${EXECFORMAT}/${BLDARCH}\
${OSFAM}/${OSVER}/common\
${OSFAM}/${OSVER}/${BLDARCH}
ENVEXTRA= default.extra
install:
cd $(BASE_DIR) && make sedfile
install -d $(INSTALL_ENVDIR)
for d in ${ENVSRCDIRS} ; do \
if [ -d $$d ] ; then \
for e in $$d/* ; do \
if [ -f $$e ] ; then \
NEWFILE=`basename $$e` ; \
sed -f $(BASE_DIR)/sedfile $$e > $(INSTALL_ENVDIR)/$${NEWFILE} ; \
echo "co $$e $(INSTALL_ENVDIR)/$${NEWFILE}" ; \
fi ; \
done ; \
fi ; \
done
# look if we have got a default.extra file, and if so
# append it to the default env
if [ -f $(INSTALL_ENVDIR)/default.extra ] ; then \
echo "Creating extra" ; \
cp $(INSTALL_ENVDIR)/default $(INSTALL_ENVDIR)/default.tmp ; \
cat $(INSTALL_ENVDIR)/default.tmp $(INSTALL_ENVDIR)/default.extra > $(INSTALL_ENVDIR)/default ; \
rm $(INSTALL_ENVDIR)/default.tmp $(INSTALL_ENVDIR)/default.extra ;\
fi ;\