EELF logging is added
[optf/osdf.git] / osdf / logging / onap_common_v1 / makefile
1 # -------------------------------------------------------------------------
2 #   Copyright (c) 2015-2017 AT&T Intellectual Property
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15 #
16 # -------------------------------------------------------------------------
17 #
18
19 test:
20         rm -f /tmp/cl.*.log
21         python CommonLogger.py
22         rm -f /tmp/cl.*.log
23         python3 CommonLogger.py -k -v
24         # python CommonLogger_test.py
25         # python3 CommonLogger_test.py
26
27 # STAGEDIR is overridden in ../makefile
28 STAGEDIR=/tmp
29
30 build: CommonLogger.html
31         mkdir -p $(STAGEDIR)/python
32         cp -p *.py *.config *.md CommonLogger.html $(STAGEDIR)/python
33         chmod a+x $(STAGEDIR)/python/*.py
34
35 CommonLogger.html: CommonLogger.py
36         pydoc -w ./CommonLogger.py
37
38 clean:
39         rm -rf __pycache__ *.pyc CommonLogger.html
40         rm -rf *~