# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: Makefile,v 1.1 2006/09/06 15:34:41 mlhuang Exp $
+# $Id: Makefile,v 1.2 2006/10/27 15:40:37 mlhuang Exp $
#
-all: plcapi.php
+all: plc_api.php
methods.php: methods.py ../PLC/__init__.py ../PLC/Methods/__init__.py
- PYTHONPATH=.. python $< | \
- sed -e "s/^/ /" > $@
+ PYTHONPATH=.. python $< > $@
+ # Indent all lines by a couple of spaces
+ sed -i -e "s/^/ /" $@
-plcapi.php: header.php methods.php footer.php
- sed -e "s/@DATE@/$$(date)/" header.php | \
- cat - methods.php footer.php > $@
+plc_api.php: header.php methods.php footer.php
+ # Set timestamp
+ sed -e "s/@DATE@/$$(date)/" header.php > $@
+ cat methods.php footer.php >> $@
clean:
- rm -f plcapi.php methods.php
+ rm -f plc_api.php methods.php
.PHONY: all clean