add a .mk

This commit is contained in:
speedie 2022-12-09 23:07:46 +01:00
parent ca96169edb
commit f8cf56414c
2 changed files with 7 additions and 3 deletions

View file

@ -2,17 +2,19 @@ SHELL = /bin/sh
NAME = iron
VER = 1.2
include options.mk
help:
@echo "make install Install ${NAME}."
@echo "make uninstall Uninstall ${NAME}."
install:
cp ${NAME} ${DESTDIR}${PREFIX}/bin
chmod +x ${DESTDIR}${PREFIX}/bin/${NAME}
cp ${NAME} ${PREFIX}${DESTDIR}/bin
chmod +x ${PREFIX}${DESTDIR}/bin/${NAME}
uninstall:
rm -rf ~/.config/${NAME}
rm -f ${DESTDIR}${PREFIX}/bin/${NAME}
rm -f ${PREFIX}${DESTDIR}/bin/${NAME}
dist:
mkdir -p ${NAME}-${VER}

2
options.mk Normal file
View file

@ -0,0 +1,2 @@
VER = 1.2
DESTDIR = "/usr"