File: Makefile

package info (click to toggle)
pgxnclient 1.3.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 672 kB
  • sloc: python: 3,545; sh: 71; makefile: 53
file content (30 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (3)
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
# pgxnclient Makefile
#
# Copyright (C) 2011-2021 Daniele Varrazzo
#
# This file is part of the PGXN client

.PHONY: sdist upload docs

PYTHON := python$(PYTHON_VERSION)
PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print ("%d.%d" % sys.version_info[:2])')

build:
	$(PYTHON) setup.py build

check:
	$(PYTHON) setup.py test

sdist:
	$(PYTHON) setup.py sdist --formats=gztar

upload:
	$(PYTHON) setup.py sdist --formats=gztar upload

docs:
	$(MAKE) -C docs

clean:
	rm -rf build pgxnclient.egg-info
	rm -rf .eggs
	$(MAKE) -C docs $@