Skip to content

Commit 5d92e38

Browse files
committed
Merge pull request #12 from crushedice2000/patch-8
Create Makefile to fix #9
2 parents e030e4e + 0de2e93 commit 5d92e38

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
AME=bbload
2+
3+
PREFIX?=/usr/local
4+
DOC_DIR=$(PREFIX)/share/doc/$(NAME)
5+
6+
DOC_FILES=LICENSE README.md
7+
8+
default: help
9+
10+
install:
11+
mkdir -p $(PREFIX)/bin
12+
mkdir -p $(DOC_DIR)
13+
cp bbload $(PREFIX)/bin/bbload
14+
cp $(DOC_FILES) $(DOC_DIR)/
15+
chmod a+x $(PREFIX)/bin/bbload
16+
17+
uninstall:
18+
rm -f $(PREFIX)/bin/bbload
19+
rm -rf $(DOC_DIR)
20+
21+
help:
22+
23+
@echo "Usage:"
24+
@echo " "
25+
@echo "make help [Show this help]"
26+
@echo "make install [Install the program]"
27+
@echo "make uninstall [Uninstall the program]"
28+
29+
.PHONY: install uninstall help default

0 commit comments

Comments
 (0)