# Last edited on 2021-11-26 19:21:56 by stolfi

SHELL := /bin/bash

# Prefix for datafiles to be plotted
DATANAME := out/main

# Prefixes for diagram images
COMPNAME := magnesium_oxychloride
DIAGNAME := out/${COMPNAME}_tpd
PNGFILE := ${DIAGNAME}.png

PYTHON := export PYTHONPATH=".:/home/stolfi/lib/:.."; python3

all: ${PNGFILE}

${PNGFILE}:
	${PYTHON} phase_diagram.py 
	plot_tri_phase_diagram.sh \
          ${DATANAME}-pt.txt \
          ${DATANAME}-ln.txt \
          ${DATANAME}-rg-Gel.txt \
          ${DATANAME}-rg-Sol.txt \
          '0000ff' \
          ${DIAGNAME}