This repository has been archived on 2024-01-22. You can view files and clone it, but cannot push or open issues or pull requests.
cproj/Makefile
2023-05-04 20:06:46 +02:00

25 lines
515 B
Makefile

SHELL = /bin/sh
NAME = cproj
VER = 0.1
include options.mk
help:
@echo "make install Install ${NAME}."
@echo "make uninstall Uninstall ${NAME}."
install:
cp ${NAME} ${PREFIX}${DESTDIR}/bin
chmod +x ${PREFIX}${DESTDIR}/bin/${NAME}
uninstall:
rm -rf ~/.config/${NAME}
rm -f ${PREFIX}${DESTDIR}/bin/${NAME}
dist:
mkdir -p ${NAME}-${VER}
cp ${NAME} README.md LICENSE Makefile ${NAME}-${VER}
tar -cf ${NAME}-${VER}.tar ${NAME}-${VER}
gzip ${NAME}-${VER}.tar
rm -rf ${NAME}-${VER}.tar ${NAME}-${VER}