blob: 5b609cc216e6703fc1324b1568e55bb7e6727280 (
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
|
CC=gcc
FLAGS=
DESTDIR=
PREFIX=/usr
.DEFAULT_GOAL := build
install: install-hbar install-headers
build: prepare build-hbar
install-headers: src/*.h
install -m644 src/*.h ${DESTDIR}${PREFIX}/include
install-chroot: src/xichroot
install -m755 src/xichroot ${DESTDIR}${PREFIX}/bin/
install-hbar: bin/hbar
install -m755 bin/hbar ${DESTDIR}${PREFIX}/bin
build-hbar: src/hbar.c
${CC} src/hbar.c -o bin/hbar ${FLAGS}
prepare:
rm -rf bin
mkdir -pv bin
|