forked from rsolomo/ansible-eos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 783 Bytes
/
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
#!/usr/bin/make
# WARN: gmake syntax
########################################################
# Makefile for ansible-eos
#
# useful targets:
# make flake8 -- flake8 checkes
# make tests -- run all of the tests
# make clean -- clean distutils
# make build -- build library/*
#
########################################################
# variable section
NAME = "ansible-eos"
PYTHON=python
BUILDER=scripts/build_modules.py
VERSION := $(shell cat VERSION)
########################################################
all: clean flake8 build tests
flake8:
flake8 --ignore=E265,E266,E302,E303,F401,F403 library/ test/ common/
clean:
@echo "Cleaning up byte compiled python stuff"
find . -type f -regex ".*\.py[co]$$" -delete
tests: clean
nosetests -v
build:
$(PYTHON) $(BUILDER)