sbrs

Simple blog and RSS system
git clone git://git.margiolis.net/sbrs.git
Log | Files | Refs | README | LICENSE

Makefile (925B)


      1 # See LICENSE file for copyright and license details.
      2 # sbrs - simple blog and rss system
      3 .POSIX:
      4 
      5 SH = sbrs
      6 VERSION = 0.1
      7 DIST = ${SH}-${VERSION}
      8 MAN1 = ${SH}.1
      9 PREFIX = /usr/local
     10 MANPREFIX = ${PREFIX}/share/man
     11 
     12 all: ${SH}
     13 	chmod +x ${SH}
     14 
     15 dist:
     16 	mkdir -p ${DIST}
     17 	cp -R articles.html index.html LICENSE Makefile rss.xml \
     18 	       sbrs sbrs.1 styles.css template.html ${DIST}
     19 	tar -cf ${DIST}.tar ${DIST}
     20 	gzip ${DIST}.tar
     21 	rm -rf ${DIST}
     22 
     23 install: all
     24 	mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man1
     25 	cp -f ${SH} ${DESTDIR}${PREFIX}/bin
     26 	cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
     27 	sed "s/VERSION/${VERSION}/g" < ${MAN1} > ${DESTDIR}${MANPREFIX}/man1/${MAN1}
     28 	chmod 755 ${DESTDIR}${PREFIX}/bin/${SH}
     29 	chmod 644 ${DESTDIR}${MANPREFIX}/man1/${MAN1}
     30 
     31 uninstall:
     32 	rm -f ${DESTDIR}${PREFIX}/bin/${SH} \
     33 		${DESTDIR}${MANPREFIX}/man1/${MAN1}
     34 
     35 clean:
     36 	rm -f ${DIST}.tar.gz
     37 
     38 .PHONY: all clean dist install uninstall