-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
41 lines (31 loc) · 807 Bytes
/
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
FXBIN = foxy
FXSRC = foxy
FMBIN = fmarks
FMBIN = fmarks
PREFIX = /usr/local/bin
MANPREFIX = /usr/local/man/man1
install:
# install foxy
@echo installing ${FXBIN} in ${PREFIX}
@mkdir -p ${PREFIX}
@chmod +x ${FXBIN}
@cp -f ${FXBIN} ${PREFIX}/
@echo installing foxy man page to ${MANPREFIX}
@mkdir -p ${MANPREFIX}
@cp -f foxy.1 ${MANPREFIX}/foxy.1
@chmod 644 ${MANPREFIX}/foxy.1
# install fmarks
@echo installing ${FMBIN} in ${PREFIX}
@mkdir -p ${PREFIX}
@chmod +x ${FMBIN}
@cp -f ${FMBIN} ${PREFIX}/
uninstall:
# uninstall foxy
@echo removing ${FXBIN} from ${PREFIX}
@rm -f ${PREFIX}/${FXBIN}
@echo removing ${FXBIN} man page from ${MANPREFIX}
@rm -f ${MANPREFIX}/foxy.1
# uninstall fmarks
@echo removing ${FMBIN} from ${PREFIX}
@rm -f ${PREFIX}/${FMBIN}
.PHONY: install uninstall