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
13 methods.php: methods.py ../PLC/__init__.py ../PLC/Methods/__init__.py
14 PYTHONPATH=.. python $< > $@
15 # Indent all lines by a couple of spaces
18 plc_api.php: header.php methods.php footer.php
20 sed -e "s/@DATE@/$$(date)/" header.php > $@
21 cat methods.php footer.php >> $@
24 rm -f plc_api.php methods.php