Files
lammps/test/lib_python/Makefile
2015-09-01 18:53:03 -04:00

19 lines
431 B
Makefile

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