From c5d4491c07725ab3ea75e587c7029f28196c7ce3 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 6 Nov 2006 22:04:58 +0000 Subject: [PATCH] add install command for development --- Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8ce40514..406a9bcc 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id: Makefile,v 1.2 2006/10/25 21:05:40 mlhuang Exp $ +# $Id: Makefile,v 1.3 2006/11/03 20:36:05 thierry Exp $ # # Metafiles @@ -13,7 +13,19 @@ INIT := PLC/__init__.py PLC/Methods/__init__.py # Other stuff SUBDIRS := doc php +# autoconf compatible variables +DESTDIR := /plc/root +datadir := /usr/share +bindir := /usr/bin + all: $(INIT) $(SUBDIRS) + python setup.py build + +install: + python setup.py install \ + --install-purelib=$(DESTDIR)/$(datadir)/plc_api \ + --install-scripts=$(DESTDIR)/$(datadir)/plc_api \ + --install-data=$(DESTDIR)/$(datadir)/plc_api $(SUBDIRS): %: $(MAKE) -C $@ @@ -22,6 +34,7 @@ clean: find . -name '*.pyc' -execdir rm -f {} \; rm -f $(INIT) for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir clean ; done + rm -rf build index: PLC/__init__.py PLC/Methods/__init__.py @@ -49,4 +62,4 @@ endif force: -.PHONY: force clean $(SUBDIRS) +.PHONY: all install force clean $(SUBDIRS) -- 2.47.0