ref: d34ddd8775ca8ebad64222911e5dd60069918b54
dir: /mkfile/
# mkfile for figlet version 2.2.2 under Plan 9 # by Lee Duhem(lee.duhem@gmail.com), February 2007 < /$objtype/mkfile CFLAGS = LDFLAGS = BIN = /$objtype/bin/games/figlet # Where figlet will search first for fonts (the ".flf" files). DEFAULTFONTDIR = "$BIN/fonts" #DEFAULTFONTDIR = "fonts" # The filename of the font to be used if no other is specified # (standard.flf is recommended, but any other can be used). # This font file should reside in the directory specified by # DEFAULTFONTDIR. DEFAULTFONTFILE = "standard.flf" ### # meta-rules %.$O: %.c $CC $CFLAGS $prereq ### SOURCES = figlet.c zipio.c crc.c inflate.c getopt.c all:V: figlet chkfont figlet: ${SOURCES:%.c=%.$O} $LD $LDFLAGS -o $target $prereq figlet.$O: figlet.c $CC $CFLAGS \ -DDEFAULTFONTDIR'='$DEFAULTFONTDIR \ -DDEFAULTFONTFILE'='$DEFAULTFONTFILE \ $prereq chkfont: chkfont.$O $LD $LDFLAGS -o $target $prereq clean:V: rm -f *.$O figlet chkfont install:V: all mkdir -p $BIN/fonts for(p in figlet chkfont figlist showfigfonts){ cp $p $BIN chmod 755 $BIN/$p } cp fonts/* $BIN/fonts chmod 644 $BIN/fonts/* cp figlet.man /sys/man/1/figlet chmod 644 /sys/man/1/figlet