sb

shitty bar for dwm
git clone git://git.ckyln.com/~cem/sb.git
Log | Files | Refs | README | LICENSE

Makefile (770B)


      1 VERSION = 1.5.0
      2 
      3 PREFIX = /usr/local
      4 BINDIR = ${PREFIX}/bin
      5 MANPREFIX = ${PREFIX}/share/man
      6 
      7 install:
      8 	mkdir -p ${DESTDIR}${BINDIR}
      9 	sed 's#FUNCPATH="./func"#FUNCPATH="${PREFIX}/share/sb-func"#g;s#VERSION="git"#VERSION="${VERSION}"#g' < sb > ${DESTDIR}${BINDIR}/sb
     10 	chmod +x ${DESTDIR}${BINDIR}/sb
     11 	install -Dm644 -t ${DESTDIR}${PREFIX}/share/sb-func func/*
     12 	mkdir -p ${DESTDIR}${MANPREFIX}/man1
     13 	mkdir -p ${DESTDIR}${MANPREFIX}/man5
     14 	sed 's#vnumber#${VERSION}#g' < sb.1 > ${DESTDIR}${MANPREFIX}/man1/sb.1
     15 	sed 's#vnumber#${VERSION}#g' < sbrc.5 > ${DESTDIR}${MANPREFIX}/man5/sbrc.5
     16 
     17 uninstall:
     18 	rm -rf \
     19 		${DESTDIR}${BINDIR}/sb \
     20 		${DESTDIR}${PREFIX}/share/sb-func \
     21 		${DESTDIR}${MANPREFIX}/man1/sb.1 \
     22 		${DESTDIR}${MANPREFIX}/man5/sbrc.5
     23 
     24 .PHONY: install uninstall