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
7 # $Id: Makefile,v 1.1 2006/10/25 20:32:44 mlhuang Exp $
12 methods.php: methods.py ../PLC/__init__.py ../PLC/Methods/__init__.py
13 PYTHONPATH=.. python $< | \
16 plc_api.php: header.php methods.php footer.php
17 sed -e "s/@DATE@/$$(date)/" header.php | \
18 cat - methods.php footer.php > $@
21 rm -f plc_api.php methods.php