| 1 | # Makefile for Python based Cif handling modules |
| 2 | |
| 3 | # Customizable variables: |
| 4 | # |
| 5 | # Instance of Python to be used for the yapps2.py script. |
| 6 | PYTHON = python3 |
| 7 | # Local helper variables: |
| 8 | # |
| 9 | # Command to execute the yapps2.py script. Note it sets the PYTHONPATH |
| 10 | # environment variable as yapps requires our modified runtime to run. |
| 11 | YAPPS2CMD = PYTHONPATH=. $(PYTHON) -X utf8 ./yapps3/yapps2.py |
| 12 | |
| 13 | package: CifFile_module.py StarFile.py Parsers |
| 14 | # |
| 15 | #%.py : %.nw |
| 16 | # nountangle -awk $< > $@ |
| 17 | # |
| 18 | %.py : %.g |
| 19 | $(YAPPS2CMD) $< |
| 20 | |
| 21 | Parsers: YappsStarParser_STAR2.py YappsStarParser_1_1.py YappsStarParser_1_0.py TypeContentsParser.py \ |
| 22 | YappsStarParser_2_0.py |
| 23 | |
| 24 | # |
| 25 | clean: |
| 26 | rm -f *.pyc |
| 27 | rm -f YappsStarParser_*.py TypeContentsParser.py |