Annotation of researchv9/X11/src/X.V11R1/fonts/Imakefile, revision 1.1

1.1     ! root        1: #define IHaveSubdirs
        !             2: #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
        !             3: 
        !             4:              FC = compiler/fc
        !             5:          SUBDIRS= compiler
        !             6:         HEADERS = cursorfont.h
        !             7: 
        !             8: all: $(SUBDIRS) fonts
        !             9: 
        !            10: $(SUBDIRS): FRC
        !            11:        cd $@; echo building $@ ; make $(MFLAGS) all
        !            12: 
        !            13: InstallMultiple($(HEADERS),$(INCDIR))
        !            14: 
        !            15: /*
        !            16:  * Yuk and XXX!  install puts these files in $(LIBDIR)/fonts/snf not
        !            17:  * in $(LIBDIR)/fonts!
        !            18:  *
        !            19:  * InstallMultiple(snf/?*.snf,$(LIBDIR)/fonts)
        !            20:  */
        !            21: 
        !            22: install:: snf/?*.snf
        !            23:        @case '${MFLAGS}' in *[i]*) set +e;; esac; \
        !            24:        cd snf; \
        !            25:        for i in *.snf; do \
        !            26:                (set -x; $(INSTALL) -c $(INSTALLFLAGS) $$i $(LIBDIR)/fonts); \
        !            27:        done
        !            28: 
        !            29: # Gruesome hackery suggested by Bill Sommerfeld.
        !            30: # The following rule finds all the BDF files, creates a new makefile to
        !            31: # compile the changed ones into SNF files, then runs that.
        !            32: 
        !            33: fonts: snf
        !            34:        make snf/Makefile
        !            35:        cd snf; make -f Makefile
        !            36: 
        !            37: snf/Makefile: bdf Makefile
        !            38:        @echo "Building $@"; \
        !            39:        rm -f $@; \
        !            40:        echo "# This makefile is created automagically by ../Makefile" > $@; \
        !            41:        echo 'FC=../$(FC)' >> $@; \
        !            42:        echo 'all: \'   >> $@; \
        !            43:        (cd bdf;ls *.bdf) \
        !            44:        | sed -e 's/\(.*\).bdf$$/\1.snf \\/' -e '$$s/..$$//' >> $@; \
        !            45:        echo >> $@; \
        !            46:        (cd bdf; ls *.bdf) \
        !            47:        | awk -F. '{printf "%s.snf: ../bdf/%s.bdf $$(FC)\n\t$$(FC) ../bdf/%s.bdf >$$@\n", $$1, $$1, $$1}' >> $@
        !            48: 
        !            49: snf:
        !            50:        mkdir snf
        !            51: 
        !            52: DependSubdirs($(SUBDIRS))
        !            53: 
        !            54: clean::
        !            55:        (cd bdf; $(RM_CMD))
        !            56:        (cd snf; $(RM_CMD) Makefile *.snf)
        !            57: 
        !            58: FRC:

unix.superglobalmegacorp.com

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