[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Build systems suck. Can Lua be the basis for a better build system?
- From: Alex Queiroz <asandroq@...>
- Date: Fri, 8 Mar 2013 09:55:07 +0100
On Fri, Mar 8, 2013 at 9:08 AM, Spencer Parkin <spencer.parkin@gmail.com> wrote:
>
> define BUILD_OBJ_RULE =
> $(1): $(2)
> $$(CPP) $$(FLAGS) -c $$< -o $$@
> endef
> $(foreach src, $(SRCS), $(eval $(call BUILD_OBJ_RULE, $(patsubst %.cpp,
> $(BUILD)/%.o, $(notdir $(src))), $(src))))
>
> Yikes! Yes, it's ugly and LISPY, but it's also probably embarassing, since
> no real programmer that actually knew what they were doing would write that.
> Moving on!
>
I write Lisp code and Make make my eyes bleed, so, no.
--
-alex
http://unendli.ch/