mata_bot

some cheeky bot for inspired by https://analognowhere.com comics
git clone https://git.pastanoggin.com/mata_bot.git
Log | Files | Refs | README | LICENSE

Makefile (987B)


      1 PREFIX = /usr/local
      2 MANDIR = ${PREFIX}/man
      3 SHAREDIR = ${PREFIX}/share
      4 RCDIR = /etc/rc.d
      5 
      6 all: rc_script
      7 
      8 rc_script: rc_script.in
      9 	sed 's|%%PREFIX%%|${PREFIX}|g' rc_script.in >rc_script
     10 
     11 clean:
     12 	rm -f rc_script
     13 
     14 install: mata_bot.pl matabot.8 rc_script
     15 	install -d ${DISTDIR}${PREFIX}/sbin
     16 	install -d ${DISTDIR}${PREFIX}/share
     17 	install -d ${DISTDIR}${MANDIR}/man8
     18 	install -d ${DISTDIR}${SHAREDIR}/matabot
     19 	install -d ${DISTDIR}${RCDIR}
     20 	install mata_bot.pl ${DESTDIR}${PREFIX}/sbin/matabot
     21 	install ball ${DESTDIR}${SHAREDIR}/matabot/ball
     22 	install hellos ${DESTDIR}${SHAREDIR}/matabot/hellos
     23 	install quotes ${DESTDIR}${SHAREDIR}/matabot/quotes
     24 	install -m 644 matabot.8 ${DESTDIR}${MANDIR}/man8/matabot.8
     25 	install rc_script ${DESTDIR}${RCDIR}/matabot
     26 
     27 uninstall:
     28 	rm -f ${DESTDIR}${PREFIX}/sbin/matabot
     29 	rm -f ${DESTDIR}${MANDIR}/man8/matabot.8
     30 	rm -f ${DESTDIR}${SHAREDIR}/ball
     31 	rm -f ${DESTDIR}${SHAREDIR}/hellos
     32 	rm -f ${DESTDIR}${SHAREDIR}/quotes
     33 	rm -f ${DESTDIR}${RCDIR}/matabot