-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 736 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 736 Bytes
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
# x-thesaurus makefile
# see LICENSE for license fdetails
# see README for help
SRC = src/x-thesaurus.cpp
CC = g++
BIN = x-thesaurus
INSTALLPATH = /usr/local/bin/
CFLAGS = -Wall
LIBS = -L/usr/lib/x86_64-linux-gnu -lcurl
x-thesaurus : ${SRC}
@echo "build ${SRC}"
@echo "CC ${CFLAGS} ${SRC} ${LIBS}"
@${CC} ${CFLAGS} ${SRC} ${LIBS} -o ${BIN}
install : ${BIN}
@echo "yippe! x-thesaurus is about enter into your local bin family"
@cp ${BIN} ${INSTALLPATH}
@chmod 755 ${INSTALLPATH}${BIN}
@echo "yippe! please use me everyday"
uninstall :
@echo "uninstalling binary-file (${INSTALLPATH}${BIN})"
@rm -f ${INSTALLPATH}${BIN}
@echo "uninstalled :`("
clean :
@echo "cleaning"
@echo "rm ${BIN}"
@rm ${BIN}
@echo "cleaned"