From dbe9f90ac1609109cf160822cf8c7c6dea5fd5f6 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 25 Jul 1996 21:07:39 +0000 Subject: [PATCH] DIRS def before include of RULES_TOP --- src/tools/makeBaseApp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/makeBaseApp b/src/tools/makeBaseApp index 64477ee81..60a3c4837 100755 --- a/src/tools/makeBaseApp +++ b/src/tools/makeBaseApp @@ -56,10 +56,10 @@ EPICS_BASE=`sed -e "s%EPICS_BASE=%%" < EPICS_BASE` if [ ! -f Makefile ]; then cat > Makefile <<-\END + DIRS += TOP = . include $(TOP)/config/CONFIG_APP include $(EPICS_BASE)/config/RULES_TOP - DIRS = END fi @@ -89,7 +89,9 @@ do if [ -d "${APPNAME}" ]; then continue; fi mkdir ${APPNAME} if [ $? -ne 0 ]; then Cleanup 1 "$USAGE"; fi - echo "DIRS += ${APPNAME}" >> Makefile + echo "DIRS += ${APPNAME}" > /tmp/'$$'.makeBaseApp.Makefile + cat Makefile >> /tmp/'$$'.makeBaseApp.Makefile + mv -f /tmp/'$$'.makeBaseApp.Makefile Makefile cd ${APPNAME} cat > Makefile <<-\END TOP = ..