2 # (Re)builds PHP API. PHP classes must be defined in a single file.
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
12 methods.php: methods.py ../PLC/__init__.py ../PLC/Methods/__init__.py
13 PYTHONPATH=.. python $< > $@
14 # Indent all lines by a couple of spaces
17 plc_api.php: header.php methods.php footer.php
19 sed -e "s/@DATE@/$$(date)/" header.php > $@
20 cat methods.php footer.php >> $@
23 rm -f plc_api.php methods.php