-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
56 lines (48 loc) · 1.82 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
#_MIT License
#_
#_Copyright (c) 2017 Dan Persons ([email protected])
#_
#_Permission is hereby granted, free of charge, to any person obtaining a copy
#_of this software and associated documentation files (the "Software"), to deal
#_in the Software without restriction, including without limitation the rights
#_to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#_copies of the Software, and to permit persons to whom the Software is
#_furnished to do so, subject to the following conditions:
#_
#_The above copyright notice and this permission notice shall be included in all
#_copies or substantial portions of the Software.
#_
#_THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#_IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#_FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#_AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#_LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#_OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#_SOFTWARE.
# Makefile for logdissect
# https://github.com/dogoncouch/logdissect
ISPYTWO := $(sh -c "python2 --version" dot 2>/dev/null)
ISPYTHREE := $(sh -c "python3 --version" dot 2>/dev/null)
all: install clean
default: all
install:
ifndef ISPYTHREE:
@echo Installing for Python 3
python3 setup.py install
endif
ifndef ISPYTWO:
@echo Installing for Python 2
python2 setup.py install
endif
clean:
rm -rf build dist logdissect.egg-info
test:
@echo Running diff tests for time
@echo
sh -c 'time tests/tests.sh'
@echo
@echo - There should be no errors.
@echo - Times should be below 0m0.400s on an i3 for Python 2.
@echo - Times should be below 0m0.800s on an i3 for Python 3.
@echo - Diff results should be empty.
@echo