Added OS dependent un-/installation.
This commit is contained in:
parent
eb4d1525a2
commit
87a787da84
6
Makefile
6
Makefile
@ -23,10 +23,16 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
ifeq ($(shell go env GOOS),windows)
|
||||||
|
else
|
||||||
install -Dm 0755 bin/${EXEC_NAME} ${DESTDIR}${PREFIX}/bin/${EXEC_NAME}
|
install -Dm 0755 bin/${EXEC_NAME} ${DESTDIR}${PREFIX}/bin/${EXEC_NAME}
|
||||||
|
endif
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
ifeq ($(shell go env GOOS),windows)
|
||||||
|
else
|
||||||
rm ${DESTDIR}${PREFIX}/bin/${EXEC_NAME}
|
rm ${DESTDIR}${PREFIX}/bin/${EXEC_NAME}
|
||||||
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f bin/*
|
rm -f bin/*
|
Loading…
Reference in New Issue
Block a user