-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·36 lines (27 loc) · 873 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile for the ebmodule package
# Tamito KAJIYAMA <12 September 2001>
# $Id: Makefile,v 1.2 2001/09/22 12:08:19 kajiyama Exp $
PYTHON= python
LIBDIR= `$(PYTHON) -c "import sys; print sys.prefix+'/lib/python'+sys.version[:3]"`
SITEPACKAGEDIR= $(LIBDIR)/site-packages
all: src/ebmodule.so
src/Makefile.pre.in:
cp $(LIBDIR)/config/Makefile.pre.in src
src/Makefile: src/Makefile.pre.in
(cd src ; $(MAKE) -f Makefile.pre.in boot)
src/ebmodule.so: src/Makefile
(cd src ; $(MAKE))
.PHONY: test
test: src/ebmodule.so
(cd test ; $(MAKE) test)
install: src/ebmodule.so
(cd src ; $(MAKE) install)
install -m 644 eblib.py $(SITEPACKAGEDIR)
$(PYTHON) $(LIBDIR)/compileall.py $(SITEPACKAGEDIR)
clean: src/Makefile
(cd src ; $(MAKE) distclean)
(cd test ; $(MAKE) clean)
$(RM) -r build
$(RM) *~ MANIFEST src/Makefile.pre.in
archive:
$(PYTHON) setup.py sdist -f