[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Granularizing ports' Makefile directives
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Granularizing ports' Makefile directives
- From: "Brian J. Kifiak" <bk_(_at_)_rt_(_dot_)_fm>
- Date: 6 Apr 2001 06:30:16 -0000
- Mail-followup-to: ports_(_at_)_openbsd_(_dot_)_org
Hi,
I think it'd be nice to be be able to isolate some Makefile
directives to subdirectories, like search, for example.
Then one could do something like
; cd /usr/ports
; make search key="keyword" cat="x11"
...
or
; cd /usr/ports/x11
; make search key="keyword"
...
so that only x11 ports will be searched.
Assuming this is a good idea ...
As far as I can see there's one main implementation choice that can
go one of two basic ways:
A) Add extra regex to the toplevel Makefile to isolate categories.
B) Split INDEX into .../${SUBDIR}/INDEX and import functionality into
.../${SUBDIR}/Makefile.
Option A means that the whole INDEX would have to be processed even
if only searching in one category.
Option B means that you'd have to open all of the INDEXes to search
through all the ports, but that it'd be faster when doing an
isolated search.
Thoughts?
I can implement.
Visit your host, monkey.org