diff options
author | jkh <jkh@FreeBSD.org> | 1997-03-11 06:59:36 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-03-11 06:59:36 +0800 |
commit | 794224dedf197536997f4bb0904d540cb6747fcf (patch) | |
tree | 4068e96faad21129846ff9400278f51546170ada /Makefile | |
parent | fb3e25884187c111e4fa17741e29d87ca8171324 (diff) | |
download | freebsd-ports-gnome-794224dedf197536997f4bb0904d540cb6747fcf.tar.gz freebsd-ports-gnome-794224dedf197536997f4bb0904d540cb6747fcf.tar.zst freebsd-ports-gnome-794224dedf197536997f4bb0904d540cb6747fcf.zip |
Add a search target.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.28 1996/12/05 11:09:04 asami Exp $ +# $Id: Makefile,v 1.29 1997/03/06 05:52:26 asami Exp $ # SUBDIR += archivers @@ -48,3 +48,11 @@ ${.CURDIR}/INDEX: print-index: ${.CURDIR}/INDEX @awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }' < ${.CURDIR}/INDEX + +search: ${.CURDIR}/INDEX +.if !defined(key) + @echo "The search target requires a keyword parameter," + @echo "e.g.: \"make search key=somekeyword\"" +.else + @grep ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }' +.endif |