-
Notifications
You must be signed in to change notification settings - Fork 38
/
common.mk
44 lines (34 loc) · 1.31 KB
/
common.mk
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
# ___ ___ ___ ___ ___ ___
# /\ \ /\ \ /\__\ /\__\ /\ \ /\__\
# /::\ \ /::\ \ /::| | /::| | /::\ \ /::| |
# /:/\:\ \ /:/\:\ \ /:|:| | /:|:| | /:/\:\ \ /:|:| |
# /:/ \:\ \ /:/ \:\ \ /:/|:|__|__ /:/|:|__|__ /:/ \:\ \ /:/|:| |__
# /:/__/ \:\__\/:/__/ \:\__\/:/ |::::\__\/:/ |::::\__\/:/__/ \:\__\/:/ |:| /\__\
# \:\ \ \/__/\:\ \ /:/ /\/__/~~/:/ /\/__/~~/:/ /\:\ \ /:/ /\/__|:|/:/ /
# \:\ \ \:\ /:/ / /:/ / /:/ / \:\ /:/ / |:/:/ /
# \:\ \ \:\/:/ / /:/ / /:/ / \:\/:/ / |::/ /
# \:\__\ \::/ / /:/ / /:/ / \::/ / /:/ /
# \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
#
# Default
default: link pre-commit
# Config rules
CONFIG = \
prospector.yml \
tasks.py
CONFIG_HIDDEN = \
.eslintrc \
.flake8 \
.isort.cfg \
.pep8 \
.pre-commit-config.yaml \
.style.yapf \
CONFIG_ALL = $(CONFIG) $(CONFIG_HIDDEN)
.PHONY: link default pre-commit ignore
link: $(CONFIG_ALL)
$(CONFIG): %: common/%
[ -e "$@" ] || (ln -s $? $@ && git add $@)
$(CONFIG_HIDDEN): .%: common/%
[ -e "$@" ] || (ln -s $? $@ && git add $@)
pre-commit:
pre-commit clean