lua-users home
lua-l archive

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


hm, that's true. But this works:  :)

src/lua:    src/*.h src/*.c
	$(MAKE) $(PLAT)

install:    src/lua

Doing that, 
make install PLAT=macosx
both builds and installs, or gives the "friendly" error message if just "make install".

-asko


Lainaus Mike Pall <mikelu-0601@mike.de>:

> Hi,
> 
> askok@dnainternet.net wrote:
> > Am I missing something obvious, what's wrong with:
> > 
> > install:   src/lua
> > 
> > That is, make the install target depend on the executable (which,
> should be dependent on the source 
> > files).  Surely, I'm missing something..? :)
> 
> Try it:
> 
> $ make install
> cc   src/lua.c   -o src/lua
> /tmp/ccbkZmVc.o: In function `lstop':
> lua.c:(.text+0x25): undefined reference to `lua_sethook'
> [... dozens of errors omitted ...]
> 
> This means make ignores src/Makefile and resorts to default
> rules (which are not sufficient).
> 
> Bye,
>      Mike
>