Files
lammps/test/01_run_std/Makefile
2015-08-14 18:27:09 -04:00

18 lines
439 B
Makefile

# Hey emacs, this is a -*- Makefile -*- !
SHELL=/bin/sh
INPUTS=$(wildcard in.*)
OUTPUTS=$(INPUTS:in.%=log.%-$(MACH)$(TAG))
EXE=../../src/lmp_$(MACH)
default:
@echo Run tests with "make test MACH=<build make target> MPICMD=<MPI launch command> LMPFLAGS=<additional flags for LAMMPS>"
test: $(EXE) $(OUTPUTS)
log.%-$(MACH)$(TAG): in.% $(EXE)
$(MPICMD) $(EXE) $(LMPFLAGS) -log none -screen $@ -echo screen -in $<
clean:
-rm -f log.*