blob: 7867107765f644ac8445e9dd609848a963eae9d1 (
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
|
include config.mk
all: bin/host
bin/host: src/host.c
mkdir -p bin
${CC} ${CFLAGS} -o $@ $<
install: bin/host
@echo installing bin to ${bin_dir} and man to ${man_dir}
@mkdir -p ${bin_dir} ${man_dir}/man1
@cp bin/host ${bin_dir}/host
@cp man/1/host ${man_dir}/man1/host.1
@chmod 755 ${bin_dir}/host
@chmod 644 ${man_dir}/man1/host.1
uninstall:
rm -f ${bin_dir}/host
rm -f ${man_dir}/man1/host.1
clean:
rm -f bin/host
.PHONY: all install uninstall clean
|