summaryrefslogtreecommitdiffstats
path: root/sys/Makefile
diff options
context:
space:
mode:
authorphilip <philip@FreeBSD.org>2008-08-08 18:00:33 +0000
committerphilip <philip@FreeBSD.org>2008-08-08 18:00:33 +0000
commit96ad9ae52af84ee459011c5ca162b29b3f94438b (patch)
tree30cca8dcad5d255a25430dc106dc6d587b726781 /sys/Makefile
parenta782fc10febc1bf57b9653c29ee514c128c78b4b (diff)
downloadFreeBSD-src-96ad9ae52af84ee459011c5ca162b29b3f94438b.zip
FreeBSD-src-96ad9ae52af84ee459011c5ca162b29b3f94438b.tar.gz
Add a "glimpse" target to the kernel Makefile.
Glimpse is a powerful "grep on an index". Especially addictive on slow laptop hard disks. MFC after: 2 days
Diffstat (limited to 'sys/Makefile')
-rw-r--r--sys/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/Makefile b/sys/Makefile
index edaca50..d7b4a0f 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -44,4 +44,11 @@ TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files
rm -f ${.CURDIR}/TAGS
cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files
+# You need the textproc/glimpse ports for this.
+glimpse:
+ cd ${.CURDIR}; glimpseindex -H . -B -f -o .
+
+glimpse-clean:
+ cd ${.CURDIR}; rm -f .glimpse_*
+
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud