Hi Maciej,

Am 13.10.2009 um 18:20 schrieb Maciej (Matchek) Blizinski:
I'm implementing a new category for gar, to create packages from loose
files. The usage is going to be:

CATEGORIES = loose
FILES = ...
LOCAL_SRC = ...

include gar/category.mk

I'd like to implement checks for FILES and LOCAL_SRC: if undefined, I
want GAR to display an error with an explanation. I need to do this
inside a target. Which target to use?

No. You can just put

ifeq ($(FILES),)
$(error Please set FILE to ...)
endif

in your categories/loose/category.mk. Or are there other reasons
you want to do that inside a target?


Best regards

  -- Dago
_______________________________________________
maintainers mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/maintainers

Reply via email to