SHELL = sh Co = ~/Co/ PROG = $(shell echo ${CURDIR} | sed -e 's/.*\///') OS = i686 alpha sgi irix64 sun4 HPUX CYGWIN OSF1 Darwin TGTS = $(addprefix Download/${PROG}., ${OS}) SRCS = $(addprefix ${Co}, $(addsuffix Bin/${PROG}, ${OS})) MAKEFLAGS = -k ifndef hosttype hosttype = i686 endif .PHONY: all i install c clean all: install tests c: clean clean: @echo -rm -f *~; \ rm -f \#*\#; \ rm -f .\#*; \ rm -f Download/*.*; \ rm -f Download/OldBinary/*.* @echo Download/${PROG}.%: ${Co}%Bin/${PROG} cp $< $@ i: install install: ${TGTS} @ls -ltr ${TGTS} t: tests tests: test1 t1: test1 test1: Download/${PROG}.${hosttype} sed -e 's/^Transform(1,1) = .*/Transform(1,1) = 1.1/' \ Si.cfg > Si-stretched.cfg; \ perturb_x Si-stretched.cfg 0.2 0.2 0.2 Si-stretched-perturbed.cfg; \ $< Si-stretched-perturbed.cfg Med 0.3 /usr/local/VASP/potpaw/elements