Makefile - 9base - revived minimalist port of Plan 9 userland to Unix
 (HTM) git clone git://git.suckless.org/9base
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       Makefile (1336B)
       ---
            1 # 9base - Plan 9 userland for Unix
            2 
            3 include config.mk
            4 
            5 SUBDIRS  = lib9\
            6         yacc\
            7         ascii\
            8         awk\
            9         basename\
           10         bc\
           11         cal\
           12         cat\
           13         cleanname\
           14         cmp\
           15         date\
           16         dc\
           17         du\
           18         dd\
           19         diff\
           20         echo\
           21         ed\
           22         factor\
           23         fortune\
           24         fmt\
           25         freq\
           26         getflags\
           27         grep\
           28         hoc\
           29         join\
           30         listen1\
           31         look\
           32         ls\
           33         md5sum\
           34         mk\
           35         mkdir\
           36         mtime\
           37         pbd\
           38         primes\
           39         rc\
           40         read\
           41         rm\
           42         sam\
           43         sha1sum\
           44         sed\
           45         seq\
           46         sleep\
           47         sort\
           48         split\
           49         ssam\
           50         strings\
           51         tail\
           52         tee\
           53         test\
           54         touch\
           55         tr\
           56         troff\
           57         unicode\
           58         uniq\
           59         unutf\
           60         urlencode\
           61         wc
           62 
           63 all:
           64         @echo 9base build options:
           65         @echo "CFLAGS   = ${CFLAGS}"
           66         @echo "LDFLAGS  = ${LDFLAGS}"
           67         @echo "CC       = ${CC}"
           68         @chmod 755 yacc/9yacc
           69         @for i in ${SUBDIRS}; do cd $$i; ${MAKE} || exit; cd ..; done;
           70 
           71 clean:
           72         @for i in ${SUBDIRS}; do cd $$i; ${MAKE} clean || exit; cd ..; done
           73         @rm -f 9base-${VERSION}.tar.gz
           74         @echo cleaned 9base
           75 
           76 install: all
           77         @for i in ${SUBDIRS}; do cd $$i; ${MAKE} install || exit; cd ..; done
           78         @echo installed 9base to ${DESTDIR}${PREFIX}
           79 
           80 uninstall:
           81         @for i in ${SUBDIRS}; do cd $$i; ${MAKE} uninstall || exit; cd ..; done
           82         @echo uninstalled 9base
           83 
           84 dist: clean
           85         @mkdir -p 9base-${VERSION}
           86         @cp -R Makefile README LICENSE std.mk yacc.mk config.mk ${SUBDIRS} 9base-${VERSION}
           87         @tar -cf 9base-${VERSION}.tar 9base-${VERSION}
           88         @gzip 9base-${VERSION}.tar
           89         @rm -rf 9base-${VERSION}
           90         @echo created distribution 9base-${VERSION}.tar.gz