conn

A script repository to manage connections in Linux.
git clone git://r-36.net/conn
Log | Files | Refs | README | LICENSE

Makefile (1412B)


      1 # conn - connection manager
      2 # See LICENSE file for copyright and license details.
      3 
      4 include config.mk
      5 
      6 all:
      7 
      8 dist:
      9 	@echo creating dist tarball
     10 	@mkdir -p conn-${VERSION}
     11 	@cp -R LICENSE TODO.md README.md Makefile config.mk \
     12 		bin etc conn-${VERSION}
     13 	@tar -cf conn-${VERSION}.tar conn-${VERSION}
     14 	@gzip conn-${VERSION}.tar
     15 	@rm -rf conn-${VERSION}
     16 
     17 examples:
     18 	@echo installing example connections to ${DESTDIR}/etc/conn
     19 	@mkdir -p ${DESTDIR}/etc/conn
     20 	@cp -R examples/* ${DESTDIR}/etc/conn
     21 
     22 pm:
     23 	@echo installing pm file to ${DESTDIR}/etc/pm/sleep.d
     24 	@mkdir -p ${DESTDIR}/etc/pm/sleep.d
     25 	@cp etc/pm/sleep.d/10-conn.sh ${DESTDIR}/etc/pm/sleep.d
     26 	@chmod 755 ${DESTDIR}/etc/pm/sleep.d/10-conn.sh
     27 
     28 etc:
     29 	@echo installing etc files into ${DESTDIR}/etc/conn
     30 	@mkdir -p ${DESTDIR}/etc/conn
     31 	@cp -R etc/conn/* ${DESTDIR}/etc/conn
     32 
     33 bin:
     34 	@echo installing conn script to ${DESTDIR}${PREFIX}/bin
     35 	@cp bin/conn ${DESTDIR}${PREFIX}/bin
     36 	@chmod 755 ${DESTDIR}${PREFIX}/bin/conn
     37 
     38 install: bin etc pm
     39 	@echo
     40 	@echo For installing the connection examples run:
     41 	@echo '		make examples'
     42 	@echo
     43 	@echo Please change ${DESTDIR}/etc/conn/config.sh to your needs.
     44 	@echo
     45 
     46 uninstall:
     47 	@echo removing conn script from ${DESTDIR}${PREFIX}/bin
     48 	@rm -f ${DESTDIR}${PREFIX}/bin/conn
     49 
     50 uninstalletc:
     51 	@echo removing etc files from ${DESTDIR}/etc/conn
     52 	@rm -rf ${DESTDIR}${PREFIX}/etc/conn
     53 
     54 .PHONY: dist examples pm etc install uninstall bin
     55