lua-users home
lua-l archive

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


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..? :)

-asko


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

> Hi,
> 
> Luiz Henrique de Figueiredo wrote:
> > 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".
> 
> Ok, another try:
> 
> # Timestamp file
> STAMP = stamp
> 
> $(PLATS):
> 	@rm -f $(STAMP)
> 	cd src; $(MAKE) $@
> 	@echo "timestamp" >$(STAMP)
> 
> clean:
> 	@rm -f $(STAMP)
> 	cd src; $(MAKE) $@
> 
> $(STAMP):
> 	@$(MAKE) $(PLAT)
> 
> none:
> 	@echo "Please choose a platform: $(PLATS)"
> 	@exit 1
> 
> install: $(STAMP)
> 	...
> 
> test: $(STAMP)
> 	...
> 
> Bye,
>      Mike
>