lua-users home
lua-l archive

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


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