lua-users home
lua-l archive

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


I would second adding .PHONY to the makefile.

- it's certainly Good Manners where supported
- where not, it does not hurt either (= does no worse than not having that line)

.asko


Lainaus Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:

> > What about:
> > 
> > .PHONY: $(PLATS) clean test install local none echo pecho lecho newer
> > 
> > Not sure how portable this is.
> 
> Yes, I know about .PHONY but I'm not betting on it being portable.
> The solution I've found is this:
> 
> test:	dummy
> 	...
> 
> install: dummy
> 	...
> 
> # make may get confused with test/ and INSTALL in a case-insensitive OS
> 
> dummy:
> 
> Unless you have a file called "dummy", it should work...
> 
> I still don't know how to make sure that Lua has been built before you
> can
> run make test or make install, but at least now "make test" without
> having
> built Lua will give an error. Ditto for "make install".
> --lhf
>