-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
57 lines (43 loc) · 1.16 KB
/
Makefile
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
SOURCES = $(wildcard *.sh *.pattern)
SUPPORT = README.md AUTHORS LICENSE .version
PKG_NAME = 2utf8
default:
@echo "[FILE=<textfile>] make file"
@echo "This was the DEMO, use make install"
file:
./main.sh -f ${FILE}
all:
@echo "# Not implemented"
@echo "build programs lib, doc."
unlink:
rm -f /usr/local/bin/${PKG_NAME}
uninstall: unlink
rm -rf /opt/${PKG_NAME}
link: unlink
ln -s "$(PWD)/main.sh" /usr/local/bin/${PKG_NAME}
alias:
@echo "add alias in to '.bashrc'"
@echo "alias ${PKG_NAME}='$PWD/main.sh'"
install: unlink uninstall
mkdir -p /opt/${PKG_NAME}
cp ${SOURCES} /opt/${PKG_NAME}/
cp ${SUPPORT} /opt/${PKG_NAME}/
ln -s /opt/${PKG_NAME}/main.sh /usr/local/bin/${PKG_NAME}
installcheck:
@echo "# Not implemented"
@echo ${SOURCES}
clean:
@echo "# Not implemented"
@echo "erase what has been buit (opposite of make all)"
dist:
@echo "# Not implemented"
@echo "create PACKAGE-VERSION.tar.gz"
distclean:
@echo "# Not implemented"
@echo "erase what ever done by make all, then clean what ever done by ./configure"
distcheck:
@echo "# Not implemented"
@echo "do sanity check"
check:
@echo "# Not implemented"
@echo "run the test suite if any"