[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Granularizing ports' Makefile directives



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