lua-users home
lua-l archive

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


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/