motd-gen

my motd scripts
git clone git://git.ckyln.com/~cem/motd-gen.git
Log | Files | Refs | README | LICENSE

Makefile (482B)


      1 # See LICENSE for copyright information
      2 #
      3 
      4 include config.mk
      5 
      6 install:
      7 	mkdir -p ${DESTDIR}${BINDIR}
      8 	sed 's#SHAREDIR#${SHAREDIR}#g' < gen-motd | sed 's#vnumber#${VERSION}#g' > ${DESTDIR}${BINDIR}/gen-motd
      9 	chmod 755 ${DESTDIR}${BINDIR}/gen-motd
     10 	for file in ${MOTDPROGS} ; do \
     11 		install -Dm644 SHAREDIR/$$file ${DESTDIR}${SHAREDIR}/motd-scripts/$$file ; done
     12 
     13 uninstall:
     14 	${RM} ${DESTDIR}${BINDIR}/gen-motd
     15 	${RM} -r ${DESTDIR}/${SHAREDIR}/motd-scripts
     16 
     17 .PHONY: install uninstall