2021-05-09 19:46:22 -04:00
|
|
|
# 9base - Plan 9 userland for Unix
|
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
|
|
|
SUBDIRS = lib9\
|
2021-05-10 12:55:12 -04:00
|
|
|
yacc\
|
2021-05-09 19:46:22 -04:00
|
|
|
ascii\
|
|
|
|
bc\
|
|
|
|
cleanname\
|
|
|
|
dc\
|
|
|
|
factor\
|
|
|
|
fortune\
|
|
|
|
fmt\
|
|
|
|
freq\
|
|
|
|
getflags\
|
|
|
|
listen1\
|
|
|
|
mk\
|
|
|
|
mtime\
|
|
|
|
pbd\
|
|
|
|
primes\
|
|
|
|
read\
|
|
|
|
troff\
|
|
|
|
unicode\
|
|
|
|
unutf\
|
|
|
|
urlencode\
|
2021-10-04 23:11:49 -04:00
|
|
|
rc\
|
2021-05-09 19:46:22 -04:00
|
|
|
|
|
|
|
all:
|
|
|
|
@echo 9base build options:
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
@chmod 755 yacc/9yacc
|
|
|
|
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} || exit; cd ..; done;
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} clean || exit; cd ..; done
|
|
|
|
@rm -f 9base-${VERSION}.tar.gz
|
|
|
|
@echo cleaned 9base
|
|
|
|
|
|
|
|
install: all
|
|
|
|
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} install || exit; cd ..; done
|
|
|
|
@echo installed 9base to ${DESTDIR}${PREFIX}
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@for i in ${SUBDIRS}; do cd $$i; ${MAKE} uninstall || exit; cd ..; done
|
|
|
|
@echo uninstalled 9base
|
|
|
|
|
|
|
|
dist: clean
|
|
|
|
@mkdir -p 9base-${VERSION}
|
|
|
|
@cp -R Makefile README LICENSE std.mk yacc.mk config.mk ${SUBDIRS} 9base-${VERSION}
|
|
|
|
@tar -cf 9base-${VERSION}.tar 9base-${VERSION}
|
|
|
|
@gzip 9base-${VERSION}.tar
|
|
|
|
@rm -rf 9base-${VERSION}
|
|
|
|
@echo created distribution 9base-${VERSION}.tar.gz
|