gentoo-tools

Some Gentoo helper tools
git clone git://r-36.net/gentoo-tools
Log | Files | Refs | LICENSE

Makefile (987B)


      1 # gentoo-tools
      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 gentoo-tools-${VERSION}
     11 	@cp -R LICENSE Makefile config.mk bin gentoo-tools-${VERSION}
     12 	@tar -cf gentoo-tools-${VERSION}.tar gentoo-tools-${VERSION}
     13 	@gzip gentoo-tools-${VERSION}.tar
     14 	@rm -rf gentoo-tools-${VERSION}
     15 
     16 install: all
     17 	@echo installing scripts to ${DESTDIR}${PREFIX}/bin
     18 	@mkdir -p ${DESTDIR}${PREFIX}/bin
     19 	@cd bin; \
     20 	for i in *; \
     21 	do \
     22 		cp $$i ${DESTDIR}${PREFIX}/bin; \
     23 		chmod 755 ${DESTDIR}${PREFIX}/bin/$$i; \
     24 	done; true
     25 	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
     26 	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
     27 	@sed "s/VERSION/${VERSION}/g" < gt.1 > ${DESTDIR}${MANPREFIX}/man1/gt.1
     28 	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/gt.1
     29 
     30 uninstall:
     31 	@echo removing scripts from ${DESTDIR}${PREFIX}/bin
     32 	@cd bin; \
     33 	for i in *; \
     34 	do \
     35 		rm -f ${DESTDIR}${PREFIX}/bin/$$i; \
     36 	done; true
     37 
     38 .PHONY: all dist install uninstall