2020-10-18 18:31:53 +02:00
|
|
|
# See LICENSE file for copyright and license details.
|
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
${NAME}:
|
|
|
|
@echo cargo build --release
|
|
|
|
@cargo build --release
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo cleaning
|
|
|
|
@cargo clean
|
|
|
|
|
2020-10-18 21:24:03 +02:00
|
|
|
install:
|
2020-10-18 18:31:53 +02:00
|
|
|
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
|
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
@cp -f target/release/${NAME} ${DESTDIR}${PREFIX}/bin
|
|
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
|
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/${NAME}
|
|
|
|
|
|
|
|
.PHONY: all clean install uninstall
|