2009-07-21 14:23:23 +00:00
|
|
|
## Makefile (for maintainance purpose)
|
|
|
|
##
|
2007-12-31 02:40:32 +00:00
|
|
|
|
|
|
|
PACKAGE=pdfminer
|
2009-07-21 14:23:23 +00:00
|
|
|
PREFIX=/usr/local
|
2009-05-16 06:38:44 +00:00
|
|
|
|
2007-12-31 02:40:32 +00:00
|
|
|
SVN=svn
|
2007-12-31 04:10:03 +00:00
|
|
|
PYTHON=python
|
2009-07-21 14:23:23 +00:00
|
|
|
RM=rm -f
|
|
|
|
CP=cp -f
|
2007-12-31 02:40:32 +00:00
|
|
|
|
2009-07-21 14:23:23 +00:00
|
|
|
VERSION=`$(PYTHON) $(PACKAGE)/__init__.py`
|
|
|
|
DISTFILE=$(PACKAGE)-$(VERSION).tar.gz
|
2008-06-29 08:45:46 +00:00
|
|
|
|
2007-12-31 02:40:32 +00:00
|
|
|
all:
|
|
|
|
|
2009-05-16 06:57:26 +00:00
|
|
|
install:
|
2009-06-20 10:00:51 +00:00
|
|
|
$(PYTHON) setup.py install --prefix=$(PREFIX)
|
2009-05-16 06:57:26 +00:00
|
|
|
|
2007-12-31 02:40:32 +00:00
|
|
|
clean:
|
2009-07-21 14:23:23 +00:00
|
|
|
-$(PYTHON) setup.py clean
|
|
|
|
-$(RM) -r build dist
|
2009-06-14 08:54:57 +00:00
|
|
|
-cd $(PACKAGE) && $(MAKE) clean
|
|
|
|
-cd tools && $(MAKE) clean
|
|
|
|
-cd samples && $(MAKE) clean
|
2007-12-31 02:40:32 +00:00
|
|
|
|
2009-05-16 06:38:44 +00:00
|
|
|
test:
|
2009-06-14 08:54:57 +00:00
|
|
|
cd samples && $(MAKE) test
|
2007-12-31 02:40:32 +00:00
|
|
|
|
|
|
|
commit: clean
|
|
|
|
$(SVN) commit
|
2009-01-17 16:31:42 +00:00
|
|
|
|
2009-05-16 06:38:44 +00:00
|
|
|
check:
|
|
|
|
cd $(PACKAGE) && make check
|
|
|
|
|
2009-10-24 04:45:26 +00:00
|
|
|
sdist: clean
|
2009-07-21 14:23:23 +00:00
|
|
|
$(PYTHON) setup.py sdist
|
2009-05-16 06:38:44 +00:00
|
|
|
|
2009-07-21 14:23:23 +00:00
|
|
|
WEBDIR=$$HOME/Site/unixuser.org/python/$(PACKAGE)
|
2009-10-24 04:45:26 +00:00
|
|
|
publish: sdist
|
2009-07-21 14:23:23 +00:00
|
|
|
$(CP) dist/$(DISTFILE) $(WEBDIR)
|
2009-07-22 22:53:18 +00:00
|
|
|
$(CP) docs/*.html $(WEBDIR)/index.html
|