XERCES_SERIES = 2 VERSION=2_8_0 TARFILE=xerces-c-src_$(VERSION).tar.gz PWD := $(shell pwd) export XERCESCROOT=$(PWD)/xerces-c-src_$(VERSION) all: prod_link prod_link: make_xerces test -L prod || ln -s xerces-c-src_$(VERSION) prod # will not overwrite existing link make_xerces: $(XERCESCROOT)/.configure_done $(MAKE) -C$(XERCESCROOT)/src/xercesc $(XERCESCROOT)/.untar_done: $(TARFILE) tar zxf $(TARFILE) date > $@ $(XERCESCROOT)/.configure_done: $(XERCESCROOT)/.untar_done cd $(XERCESCROOT)/src/xercesc; ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread date > $@ $(TARFILE): wget http://apache.inetbridge.net/xerces/c/$(XERCES_SERIES)/sources/$(TARFILE)