DAMASK_EICMD/Makefile

43 lines
966 B
Makefile
Raw Normal View History

SHELL = /bin/sh
########################################################################################
# Makefile for the installation of DAMASK
########################################################################################
.PHONY: all
2014-04-04 17:45:55 +05:30
all: spectral marc processing
2014-01-24 18:00:27 +05:30
.PHONY: spectral
spectral:
$(MAKE) DAMASK_spectral.exe -C code
.PHONY: FEM
FEM:
$(MAKE) DAMASK_FEM.exe -C code
2014-01-24 18:00:27 +05:30
.PHONY: marc
marc:
2014-01-22 21:33:27 +05:30
@./installation/mods_MarcMentat/apply_DAMASK_modifications.sh ${MAKEFLAGS}
.PHONY: processing
processing:
@if hash cython 2>/dev/null; then \
cd ./lib/damask; \
ln -s orientation.py corientation.pyx; \
CC=gcc python setup_corientation.py build_ext --inplace; \
rm -rv build; \
rm *.c; \
fi
2014-01-24 18:00:27 +05:30
.PHONY: tidy
tidy:
@$(MAKE) tidy -C code >/dev/null
2014-01-24 18:00:27 +05:30
.PHONY: clean
clean:
@$(MAKE) cleanDAMASK -C code >/dev/null
2014-01-24 18:00:27 +05:30
.PHONY: install
install:
@./installation/symlink_Code.py ${MAKEFLAGS}
@./installation/symlink_Processing.py ${MAKEFLAGS}