forked from informatics-isi-edu/webauthn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (63 loc) · 2.01 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
RELEASE=$(shell svn info | grep "Revision:" | awk '{print $$2}')
# arguments that can be set via make target params or environment?
PLATFORM=centos6
# get platform-specific variable bindings
include config/make-vars-$(PLATFORM)
# catalog of all the files/dirs we manage via make targets below
INSTALL_PYTHON_FILES= \
webauthn2/__init__.py \
webauthn2/manager.py \
webauthn2/rest.py \
webauthn2/util.py \
webauthn2/exc.py \
webauthn2/providers/__init__.py \
webauthn2/providers/crowd2.py \
webauthn2/providers/crowdrest1.py \
webauthn2/providers/database.py \
webauthn2/providers/goauth.py \
webauthn2/providers/null.py \
webauthn2/providers/oauth1a.py \
webauthn2/providers/oauth2.py \
webauthn2/providers/providers.py \
webauthn2/providers/webcookie.py \
webauthn2/providers/globusonline.py \
webauthn2/providers/verified_https.py
INSTALL_PYTHON_DIRS= \
webauthn2/providers
EDIT_FILES= \
Makefile \
samples/webauthn2_config.json \
$(INSTALL_PYTHON_FILES)
CLEAN_FILES= \
$(EDIT_FILES:%=%~) \
$(INSTALL_PYTHON_FILES:%=%c) \
$(INSTALL_PYTHON_FILES:%=%o) \
config/*~
# these are the install target contents... actual system file paths
INSTALL_FILES= \
$(INSTALL_PYTHON_FILES:%=$(PYLIBDIR)/%) \
$(SHAREDIR)/webauthn2_config.json
INSTALL_DIRS= \
$(INSTALL_PYTHON_DIRS:%=$(PYLIBDIR)/%)
# bump the revision when changing predeploy side-effects
PREINSTALL=$(VARLIBDIR)/preinstall.r4143
# turn off annoying built-ins
.SUFFIXES:
# make this the default target
install: $(INSTALL_FILES) $(PREINSTALL)
uninstall: force
rm -f $(INSTALL_FILES)
rmdir --ignore-fail-on-non-empty -p $(INSTALL_DIRS) $(SHAREDIR)
# get platform-specific rules (e.g. actual predeploy recipe)
include config/make-rules-$(PLATFORM)
$(SHAREDIR)/%: ./samples/%
install -o root -g root -m u=rw,g=r,o=r -p -D $< $@
$(PYLIBDIR)/%: ./%
install -o root -g root -m u=rw,g=r,o=r -p -D $< $@
preinstall: $(PREDEPLOY)
unpreinstall: force
rm -f $(VARLIBDIR)/preinstall.r*
clean: force
rm -f $(CLEAN_FILES)
cleanhost: force uninstall unpreinstall
force: