File: Makefile

package info (click to toggle)
9base 1%3A6-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,536 kB
  • sloc: ansic: 61,060; yacc: 1,991; asm: 1,621; cs: 1,150; perl: 965; makefile: 616; sh: 18; sed: 4
file content (84 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (8)
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
81
82
83
84
# 9base - Plan 9 userland for Unix

include config.mk

SUBDIRS  = lib9\
	yacc\
	ascii\
	awk\
	basename\
	bc\
	cal\
	cat\
	cleanname\
	cmp\
	date\
	dc\
	du\
	dd\
	diff\
	echo\
	ed\
	factor\
	fortune\
	fmt\
	freq\
	getflags\
	grep\
	hoc\
	join\
	look\
	ls\
	mk\
	mkdir\
	mtime\
	pbd\
	primes\
	rc\
	read\
	sam\
	sha1sum\
	sed\
	seq\
	sleep\
	sort\
	split\
	strings\
	tail\
	tee\
	test\
	touch\
	tr\
	troff\
	unicode\
	uniq\
	unutf\

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