[csw-maintainers] GAR: Checking for certain variables inside a category file

Dagobert Michelsen dam at opencsw.org
Tue Oct 13 18:28:18 CEST 2009


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



More information about the maintainers mailing list