blob: 56e4a9d540db7a34573a02b877ad79de3bfd1abb (
plain)
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
|
CC=gcc
FLAGS=
DESTDIR=
PREFIX=/usr
DIST=dist
.DEFAULT_GOAL := build
install: install-hbar install-colors install-parseconf install-shtests install-glyphs
check: check-parseconf
build: make-dist build-hbar
make-dist:
mkdir -p ${DIST}
install-headers: src/*.h
install -Dm644 src/*.h ${DESTDIR}${PREFIX}/include
install-shtests: src/shtests.sh
install -Dm755 src/shtests.sh ${DESTDIR}${PREFIX}/bin/shtests
install-parseconf: src/parseconf.sh
install -Dm755 src/parseconf.sh ${DESTDIR}${PREFIX}/bin/parseconf
install-hbar: build-hbar
install -Dm755 ${DIST}/hbar ${DESTDIR}${PREFIX}/bin
install-colors: src/colors.list
install -Dm755 ${DIST}/colors.sh ${DESTDIR}${PREFIX}/lib/colors.sh
install -Dm755 ${DIST}/colors.h ${DESTDIR}${PREFIX}/include/colors.h
install-glyphs: src/glyphs.sh
install -m755 src/glyphs.sh ${DESTDIR}${PREFIX}/lib
check-parseconf: install-shtests test/parseconf.sh
${DESTDIR}${PREFIX}/bin/shtests ./test/parseconf.sh
build-hbar: generate-colors src/hbar.c
${CC} -I${DIST} src/hbar.c -o ${DIST}/hbar ${FLAGS}
generate-colors: src/colors.list
sh src/generate_colors.sh ${DIST}/ src/colors.list
clean:
rm -r ${DIST}
# xichroot
#
install-chroot: src/xichroot.sh
install -Dm755 src/xichroot.sh ${DESTDIR}${PREFIX}/bin/xichroot
|