-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
65 lines (47 loc) · 1.25 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
# -*- coding: utf-8 -*-
# Copyright © 2010 by DNV GL SE
# Compile and distribute DNVGLPyFramework.
# ID: $Id$
# $Date$
# $Revision$
# Author Berthold Höllmann <[email protected]>
SHELL = /bin/bash
all: build
@echo "nothing to do"
test: build
make -C test test
doc:
$(MAKE) -C doc html
sdist:
python setup.py $@ --formats gztar,bztar,zip
bdist_egg build_sphinx:
python setup.py $@
%_test:
make -C test $@
%:
make -C test $@
build install:
python setup.py $@
IGN = $(shell [ -n "$$(svn propget svn:ignore .)" ] && echo "$$(svn propget svn:ignore .)")
clean:
[ -n "$(IGN)" ] && $(RM) -r $(IGN) || true
$(MAKE) -C test clean
TAGS:
find src -name \*.py
( set -e ; \
find src -name \*.c -o -name \*.h -o -name \*.py -o -name \*.pyx \
-o -name \*.pxi | xargs etags )
check_clean:
svn update
[ -z "$$(svn status -q)" ] || (echo "Working copy is not pristine, exiting.";false)
dist: check_clean test sdist bdist_egg build_sphinx
devpi upload --no-vcs --with-docs --formats sdist.tgz,sdist.tbz,sdist.zip,bdist_egg,bdist_wheel,bdist_dumb
devpi test DNVGLPyFramework -e py27,py34
.PHONY: build
.PHONY: doc
.PHONY: test
# Local Variables:
# mode: makefile
# ispell-local-dictionary:"english"
# compile-command:"make test"
# End: