
.PHONY: all clean

SOURCE=theory.sinp.msu.ru/~pukhov/SPECTRA
data = AtProduction-AntiP.dat  AtProduction-Ga.dat  AtProduction-Nuel.dat  AtProduction-Numu.dat  AtProduction-Nuta.dat  AtProduction-Positrons.dat

ifeq ($(MAKECMDGOALS),clean)
clean: 
	rm -f $(data)
endif

all: 
ifneq (, $(shell command -v curl 2> /dev/null))
	curl http://$(SOURCE)/Pythia8_woU.tgz  -O -L
else 
ifneq (, $(shell command -v wget 2> /dev/null))
	wget http://$(SOURCE)/Pythia8_woU.tgz
else 
	$(error "Neither wget nor curl are available, please install wget or curl or change SSUSY.make accordingly.")
endif
endif
	tar -xvzf Pythia8_woU.tgz
	rm  Pythia8_woU.tgz
