Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nemu3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
nemu3
Commits
006576a6
Commit
006576a6
authored
May 25, 2012
by
Martín Ferrari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some improvements to the Makefile.
parent
75f3762b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
Makefile
Makefile
+21
-10
No files found.
Makefile
View file @
006576a6
...
...
@@ -2,9 +2,11 @@ SRC = src
TEST
=
test
BUILDDIR
=
build
DISTDIR
=
dist
COVERDIR
=
coverage
SRCFILES
:=
$(
shell
find
$(SRC)
-type
f
)
# stupid distutils, it's broken in so many ways
SUBBUILDDIR
=
$(
shell
python
-c
'import distutils.util, sys; \
SUBBUILDDIR
:
=
$(
shell
python
-c
'import distutils.util, sys; \
print "lib.%s-%s" % (distutils.util.get_platform(
)
, \
sys.version[0:3]
)
'
)
PYTHON25
:=
$(
shell
python
-c
'import sys; v = sys.version_info; \
...
...
@@ -16,11 +18,13 @@ else
BUILDDIR
:=
$(BUILDDIR)
/lib
endif
COVERAGE
=
$(
or
$(
shell
which coverage
)
,
$(
shell
which python-coverage
)
,
\
coverage
)
COVERAGE
:
=
$(
or
$(
shell
which coverage
)
,
$(
shell
which python-coverage
)
,
\
coverage
)
all
:
all
:
build_stamp
build_stamp
:
$(SRCFILES)
./setup.py build
touch
$@
install
:
all
./setup.py
install
...
...
@@ -32,25 +36,32 @@ test: all
PYTHONPATH
=
"
$(BUILDDIR)
"
$$
i
||
retval
=
$$
?
;
\
done
;
exit
$$
retval
coverage
:
all
rm
-f
.coverage
coverage
:
coverage_stamp
$(COVERAGE)
-r
-m
`
find
"
$(BUILDDIR)
"
-name
\\
*
.py
-type
f
`
coverage-report
:
coverage_stamp
rm
-rf
$(COVERDIR)
$(COVERAGE)
-b
-d
$(COVERDIR)
`
find
"
$(BUILDDIR)
"
-name
\\
*
.py
-type
f
`
@
echo
"Coverage report created in
$(COVERDIR)
/index.html"
coverage_stamp
:
build_stamp
for
i
in
`
find
"
$(TEST)
"
-perm
-u
+x
-type
f
`
;
do
\
set
-e
;
\
PYTHONPATH
=
"
$(BUILDDIR)
"
$(COVERAGE)
-x
$$
i
;
\
done
$(COVERAGE)
-c
$(COVERAGE)
-r
-m
`
find
"
$(BUILDDIR)
"
-name
\\
*
.py
-type
f
`
rm
-f
.coverage
touch
$@
clean
:
./setup.py clean
rm
-f
`
find
-name
\*
.pyc
`
.coverage
*
.pcap
rm
-f
`
find
-name
\*
.pyc
`
.coverage
*
.pcap
*
_stamp
rm
-rf
$(COVERDIR)
$(MAKE)
-C
$(CURDIR)
/benchmarks/ clean
distclean
:
clean
rm
-rf
"
$(DISTDIR)
"
MANIFEST
:
MANIFEST
:
distclean
find
.
-path
./.hg
-prune
-o
-path
./build
-prune
-o
\
-name
\*
.pyc
-prune
-o
-name
\*
.swp
-prune
-o
\
-name
MANIFEST
-prune
-o
-type
f
-print
|
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment