Annotation of kernel/MakeInc.csh, revision 1.1

1.1     ! root        1: ##
        !             2: # Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3: #
        !             4: # @APPLE_LICENSE_HEADER_START@
        !             5: # 
        !             6: # Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7: # Reserved.  This file contains Original Code and/or Modifications of
        !             8: # Original Code as defined in and that are subject to the Apple Public
        !             9: # Source License Version 1.1 (the "License").  You may not use this file
        !            10: # except in compliance with the License.  Please obtain a copy of the
        !            11: # License at http://www.apple.com/publicsource and read it before using
        !            12: # this file.
        !            13: # 
        !            14: # The Original Code and all software distributed under the License are
        !            15: # distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16: # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17: # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18: # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19: # License for the specific language governing rights and limitations
        !            20: # under the License.
        !            21: # 
        !            22: # @APPLE_LICENSE_HEADER_END@
        !            23: ##
        !            24: 
        !            25: #
        !            26: # Makefile include file for shell scripts
        !            27: # Copyright NeXT, Inc.  1989, 1990.  All rights reserved.
        !            28: #
        !            29: 
        !            30: #
        !            31: # Standard targets
        !            32: #
        !            33: ifneq "" "$(wildcard /bin/mkdirs)"
        !            34:   MKDIRS = /bin/mkdirs
        !            35: else
        !            36:   MKDIRS = /bin/mkdir -p
        !            37: endif
        !            38: 
        !            39: .DEFTARGET:    all
        !            40: 
        !            41: all:
        !            42: 
        !            43: remake:        clean all
        !            44: 
        !            45: install: DSTROOT $(DSTDIRS) $(OBJROOT) all installhdrs
        !            46:        -$(RM) $(RMFLAGS) $(OBJROOT)/$(PROGRAM).VERS
        !            47:        sed -e "s/#PROGRAM.*/#`vers_string $(PROGRAM)`/" \
        !            48:            <$(PROGRAM).csh >$(OBJROOT)/$(PROGRAM).VERS
        !            49:        install $(IFLAGS) $(OBJROOT)/$(PROGRAM).VERS \
        !            50:                $(DSTROOT)$(BINDIR)/$(PROGRAM)
        !            51:        -$(RM) $(RMFLAGS) $(OBJROOT)/$(PROGRAM).VERS
        !            52: 
        !            53: reinstall: clean install
        !            54: 
        !            55: clean: ALWAYS
        !            56:        -$(RM) $(RMFLAGS) $(OBJROOT)/$(PROGRAM).VERS
        !            57: 
        !            58: clobber: clean
        !            59:        -$(RM) $(RMFLAGS) $(GARBAGE)
        !            60:        
        !            61: print: ALWAYS
        !            62:        for i in $(PRINTFILES); \
        !            63:        do \
        !            64:                expand -$(TABSIZE) $$i >/tmp/$$i; \
        !            65:        done; \
        !            66:        cd /tmp; \
        !            67:        enscript $(ENSCRIPTFLAGS) $(PRINTFILES); \
        !            68:        $(RM) $(RMFLAGS) $(PRINTFILES); \
        !            69:        touch PrintDate.$(USER)
        !            70: 
        !            71: update:        PrintDate.$(USER)
        !            72: 
        !            73: tags vgrind:
        !            74: 
        !            75: #
        !            76: # Internal targets
        !            77: #
        !            78: PrintDate.$(USER): $(PRINTFILES)
        !            79:        for i in $?; \
        !            80:        do \
        !            81:                expand -$(TABSIZE) $$i >/tmp/$$i; \
        !            82:        done; \
        !            83:        cd /tmp; \
        !            84:        enscript $(ENSCRIPTFLAGS) $(PRINTFILES); \
        !            85:        $(RM) $(RMFLAGS) $(PRINTFILES); \
        !            86:        touch PrintDate.$(USER)
        !            87: 
        !            88: DSTROOT:
        !            89:        @if [ -n "$($@)" ]; \
        !            90:        then \
        !            91:                exit 0; \
        !            92:        else \
        !            93:                echo Must define $@; \
        !            94:                exit 1; \
        !            95:        fi
        !            96: 
        !            97: $(DSTDIRS) $(OBJROOT):
        !            98:        $(MKDIRS) $@
        !            99: 
        !           100: ALWAYS:

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.