[Aldor-l] compilation errors

Ralf Hemmecke ralf at hemmecke.de
Tue Apr 19 04:06:14 EDT 2005


I had just a small problem with the compilation of the current 
libraries. The compilation of algebra aborted.

Unfortunately, the compilation went on and I had to browse the whole 
compilation output to find out what went wrong.

I'd rather like that the compilation stops in such a case.

I figured out the problem in lib/Makefile. It is the "for" loop that 
does not bother about the error in the submake. :-(

-------- current version --------
generic:
	@(echo "LIBS MAKE GENERIC"; \
	  PATH=$(ALDORROOT)/bin:$(PATH); \
	  export PATH; \
	  export GENERIC_DIR; \
	  for i in $(LIBS_TO_BUILD); do cd $$i; $(MAKE) generic; cd ..; done)

cleansources:
	@for i in $(LIBS_TO_BUILD); do echo "Cleaning sources for $$i"; cd $$i; 
$(MAKE) clean; cd ..; done


-------- Suggested version --------
generic:
	@echo "LIBS MAKE GENERIC"
	@$(MAKE) PATH="$(ALDORROOT)/bin:$(PATH)" \
		GENERIC_DIR="$(GENERIC_DIR)" \
		$(LIBS_TO_BUILD:%=%.generic)
$(LIBS_TO_BUILD:%=%.generic): %.generic:
	@cd $*; $(MAKE) generic

cleansources: $(LIBS_TO_BUILD:%=%.clean)
$(LIBS_TO_BUILD:%=%.clean): %.clean:
	@echo "Cleaning sources for $*"
	@cd $*; $(MAKE) clean

If there are no objections, I will check the new version in.

Ralf



More information about the Aldor-l mailing list