Add makefile

This commit is contained in:
speedie 2023-06-15 19:37:15 +02:00
parent ce7e86edbc
commit 61a466c062
2 changed files with 25 additions and 0 deletions

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
include options.mk
help:
@echo "make install Install ${NAME}."
@echo "make uninstall Uninstall ${NAME}."
@echo "make dist Create distro package for ${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}
[ -f "PKGBUILD" ] && cp -f PKGBUILD ${NAME}-${VER} || :
tar -cf ${NAME}-${VER}.tar ${NAME}-${VER}
gzip ${NAME}-${VER}.tar
rm -rf ${NAME}-${VER}.tar ${NAME}-${VER}

3
options.mk Normal file
View file

@ -0,0 +1,3 @@
VER = 0.1
PREFIX = "/usr"
NAME = wallpaper-spmenu