lua-users home
lua-l archive

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


Asko Kauppi <asko.kauppi@sci.fi> writes:

> Why, oh why cannot people use conditionals in the Makefiles so users
> wouldn't need to go and configure?
> 
> I mean.. I just have this "best manuals are the ones you don't need to
> read" attitude.
> 
> # ---
> # OS detection
> #
> UNAME= $(shell uname)
> 
> ifeq "$(UNAME)" "Linux"
>    ...
> endif
> ifeq "$(UNAME)" "Darwin"
>    ...
> endif
> ifneq "" "$(findstring BSD,$(UNAME))"
>    ...
> endif

Because it works only with GNU Make ?

-- 
Raffaello