blob: 04e10b8b7509ddfe60e6e6ff1c2777050e38520c (
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
|
## see LICENSE file for licensing information ##
INSTALL_DIR = /usr/bin
SYS_CFG_DIR = /etc
.PHONY: main install check clean uninstall
NAME = mktree
main : bin/mktree bin/mktree.1.gz
bin/mktree.1.gz : doc/mktree.1
@awk -f make.awk $< | gzip -c > $@
bin/mktree : src/main.sh src/args.sh src/util.sh
@awk -f make.awk $< > $@
@chmod +x $@
install : main
cp bin/$(NAME) $(INSTALL_DIR)/
cp -r def/* $(SYS_CFG_DIR)/mktree/
check :
@mkdir -p src inc res bin
@[[ -f src/main.sh ]] && echo "Done: Yup, the main file is there." || echo "Error: Were did the script go?"
clean :
@rm -f bin/*
uninstall :
rm -f $(INSTALL_DIR)/$(NAME)
rm -rf $(SYS_CFG_DIR)/mktree
|