aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 0254de2f7e0a2b1a6dd9df382c7dda5c63880321 (plain) (tree)





















                                                  
PROG=soibox
PREFIX=/usr/local
BINDIR=${PREFIX}/bin
LICENSEDIR=${PREFIX}/share/licenses/soibox

doc:
	mkdir -p ${DESTDIR}${LICENSEDIR}
	chmod 644 LICENSE
	cp LICENSE ${DESTDIR}${LICENSEDIR}

install:
	chmod 755 ${PROG}
	cp ${PROG} ${PROG}.bak
	mkdir -p ${DESTDIR}${BINDIR}
	cp ${PROG}.bak ${DESTDIR}${BINDIR}/${PROG}
	rm ${PROG}.bak

uninstall:
	rm -f ${DESTDIR}${BINDIR}/${PROG}
	rm -rf ${DESTDIR}${LICENSEDIR}

.PHONY: install uninstall doc