Add makefile
This commit is contained in:
parent
ce7e86edbc
commit
61a466c062
22
Makefile
Normal file
22
Makefile
Normal 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
3
options.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
VER = 0.1
|
||||
PREFIX = "/usr"
|
||||
NAME = wallpaper-spmenu
|
Loading…
Reference in a new issue