Add makefile and update install documentation.
This commit is contained in:
parent
9d262977f9
commit
7f104f054a
2 changed files with 51 additions and 9 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
DESTDIR=/
|
||||
PREFIX=${HOME}/
|
||||
BINDIR=bin/
|
||||
|
||||
default:
|
||||
go build -o build/ ./...
|
||||
|
||||
install:
|
||||
mkdir -p ${DESTDIR}/${PREFIX}/${BINDIR}
|
||||
cp build/evinfo ${DESTDIR}/${PREFIX}/${BINDIR}/
|
||||
cp build/joyful ${DESTDIR}/${PREFIX}/${BINDIR}/
|
||||
|
||||
uninstall:
|
||||
rm ${DESTDIR}/${PREFIX}/${BINDIR}/evinfo
|
||||
rm ${DESTDIR}/${PREFIX}/${BINDIR}/joyful
|
||||
|
||||
clean:
|
||||
rm -rf build/
|
Loading…
Add table
Add a link
Reference in a new issue