-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
98 lines (72 loc) · 2.54 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
-include config.mak
PYTHON ?= python
pyver = $(shell $(PYTHON) -V 2>&1 | sed 's/^[^ ]* \([0-9]*\.[0-9]*\).*/\1/')
SUBDIRS = sql doc
all: python-all modules-all
modules-all: config.mak
$(MAKE) -C sql all
python-all: config.mak
$(PYTHON) setup.py build
clean:
$(PYTHON) setup.py clean
$(MAKE) -C sql clean
$(MAKE) -C doc clean
rm -rf build
find python -name '*.py[oc]' -print | xargs rm -f
rm -f python/skytools/installer_config.py
rm -rf tests/londiste/sys
rm -rf tests/londiste/file_logs
rm -rf tests/londiste/fix.*
rm -rf tests/scripts/sys
install: python-install modules-install
installcheck:
$(MAKE) -C sql installcheck
modules-install: config.mak
$(MAKE) -C sql install DESTDIR=$(DESTDIR)
test \! -d compat || $(MAKE) -C compat $@ DESTDIR=$(DESTDIR)
python-install: config.mak modules-all
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR)/
$(MAKE) -C doc DESTDIR=$(DESTDIR) install
python-install python-all: python/skytools/installer_config.py
python/skytools/installer_config.py: python/skytools/installer_config.py.in config.mak
sed -e 's!@SQLDIR@!$(SQLDIR)!g' $< > $@
distclean: clean
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit 1; done
$(MAKE) -C doc $@
rm -rf source.list dist skytools-*
find python -name '*.pyc' | xargs rm -f
rm -rf dist build
rm -rf autom4te.cache config.log config.status config.mak
deb80:
./configure --with-pgconfig=/usr/lib/postgresql/8.0/bin/pg_config
sed -e s/PGVER/8.0/g -e s/PYVER/$(pyver)/g < debian/packages.in > debian/packages
yada rebuild
debuild -uc -us -b
deb81:
./configure --with-pgconfig=/usr/lib/postgresql/8.1/bin/pg_config
sed -e s/PGVER/8.1/g -e s/PYVER/$(pyver)/g < debian/packages.in > debian/packages
yada rebuild
debuild -uc -us -b
deb82:
./configure --with-pgconfig=/usr/lib/postgresql/8.2/bin/pg_config
sed -e s/PGVER/8.2/g -e s/PYVER/$(pyver)/g < debian/packages.in > debian/packages
yada rebuild
debuild -uc -us -b
deb83:
./configure --with-pgconfig=/usr/lib/postgresql/8.3/bin/pg_config
sed -e s/PGVER/8.3/g -e s/PYVER/$(pyver)/g < debian/packages.in > debian/packages
yada rebuild
debuild -uc -us -b
tgz: config.mak clean
$(MAKE) -C doc man
$(PYTHON) setup.py sdist -t source.cfg -m source.list
debclean: distclean
rm -rf debian/tmp-* debian/build* debian/control debian/packages-tmp*
rm -f debian/files debian/rules debian/sub* debian/packages
boot: configure
configure: configure.ac
autoconf
tags:
ctags `find python -name '*.py'`
.PHONY: all clean distclean install deb debclean tgz tags
.PHONY: python-all python-clean python-install