-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (73 loc) · 1.24 KB
/
Makefile
File metadata and controls
80 lines (73 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 9base - Plan 9 userland for Unix
include config.mk
SUBDIRS = lib9\
yacc\
ascii\
basename\
cat\
cleanname\
cmp\
cp\
date\
du\
dd\
diff\
echo\
factor\
fortune\
fmt\
freq\
getflags\
grep\
hoc\
join\
look\
ls\
md5sum\
mkdir\
mtime\
pbd\
primes\
pwd\
read\
rm\
sha1sum\
sed\
seq\
sleep\
sort\
split\
strings\
tail\
tee\
test\
touch\
tr\
unicode\
uniq\
unutf\
wc
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