silently linking
authorClaus Gittinger <cg@exept.de>
Tue, 31 Oct 1995 16:30:16 +0100
changeset 35 67468d0f4a2d
parent 34 691634ef460c
child 36 6eecc1c33439
silently linking
Make.proto
--- a/Make.proto	Mon Oct 30 19:21:16 1995 +0100
+++ b/Make.proto	Tue Oct 31 16:30:16 1995 +0100
@@ -177,29 +177,45 @@
 #
 newSource:
 	    -rm -rf source
-	    $(MAKE) sourceLink
+	    @-$(MAKE) sourceLink
 
 Source:     source
 
 source:     
-	    $(MAKE) sourceLink
+	    @-$(MAKE) sourceLink
 
 #
 # make a new include subdirectory and link to abbreviation file
 newInclude:
 	    -rm -rf include
-	    $(MAKE) includeLink
+	    @-$(MAKE) includeLink
 
 includeLink:
-	    @-rm ttt*.H
-	    -mkdir include
-	    @-echo "linking abbrev.stc ..."
-	    @-(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .)
-	    @-echo "linking liblist.stc ..."
-	    @-(cd include; $(LNS) ../$(INCLUDE)/liblist.stc .)
-	    @-if [ -f $(INCLUDE)/symbols.stc ]; then              \
-	        echo "linking symbols.stc ...";			  \
-		(cd include; $(LNS) ../$(INCLUDE)/symbols.stc .); \
+	    @-rm -f ttt*.H
+	    @-if [ ! -d include ]; then				\
+	        mkdir include;					\
+	    fi
+	    @-if [ ! -r include/abbrev.stc ]; then			\
+	        if [ -f $(INCLUDE)/abbrev.stc ]; then                   \
+	            echo "linking abbrev.stc ...";			\
+	            (cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .);	\
+		else							\
+		    echo "oops - no $(INCLUDE)/abbrev.stc";		\
+		fi							\
+	    fi
+	    @-if [ ! -r include/liblist.stc ]; then			\
+	        if [ -f $(INCLUDE)/liblist.stc ]; then                  \
+	            echo "linking liblist.stc ...";			\
+	            (cd include; $(LNS) ../$(INCLUDE)/liblist.stc .);	\
+		else							\
+		    echo "oops - no $(INCLUDE)/liblist.stc";		\
+		fi							\
+	    fi
+	    @-if [ ! -r include/symbols.stc ]; then			\
+	        if [ -f $(INCLUDE)/symbols.stc ]; then                  \
+	            echo "linking symbols.stc ...";			\
+		    (cd include; $(LNS) ../$(INCLUDE)/symbols.stc .);   \
+		fi							\
 	    fi
 	    @-rm -f include/RCS include/CVS
 
@@ -217,10 +233,10 @@
 #
 newBinary:
 	    -rm -rf binary
-	    $(MAKE) binaryLink
+	    @-$(MAKE) binaryLink
 
 binary:
-	    $(MAKE) binaryLink
+	    @-$(MAKE) binaryLink
 
 #
 # make a new bitmaps subdirectory
@@ -228,12 +244,12 @@
 #
 newBitmaps:
 	    -rm -rf bitmaps
-	    $(MAKE) bitmaps
+	    @-$(MAKE) bitmaps
 
 Bitmaps:    bitmaps
 
 bitmaps:    
-	    $(MAKE) bitmapLink
+	    @-$(MAKE) bitmapLink
 
 #
 # clean out intermediate chunk
@@ -336,6 +352,7 @@
 
 styles:     resources
 	    @-echo "linking style files from $(LIBVIEWDIR)/styles ..."
+	    @-rm -f resources/*.style resources/*.common
 	    @-(cd resources; $(LNS) ../$(LIBVIEWDIR)/styles/* .)
 	    @rm -f resources/RCS resources/CVS