mirror of
https://github.com/Wojtek242/rwmstatus.git
synced 2024-11-23 16:05:26 +01:00
Add Makefile for consistency with other suckless projects
This commit is contained in:
parent
dc4e3c2c70
commit
c75b90824a
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# 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
|
||||
|
||||
install: all
|
||||
@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
|
Loading…
Reference in New Issue
Block a user