forked from ilarik/irods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
93 lines (63 loc) · 2.17 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
84
85
86
87
88
89
90
91
92
include VERSION.tmp
include ./iRODS/config/external_versions.txt
MAKEFLAGS += --no-print-directory
.PHONY : default all epm mkdocs squeaky_clean clean libs plugins-nodb code-generation irods external docs doxygen icat icat-package icommands icommands-package resource resource-package resource postgres mysql oracle
default : external libs plugins-nodb irods
all : external libs plugins-nodb irods docs epm
icat : external libs plugins-nodb irods
icat-package : external libs plugins-nodb irods
icommands : external libs clients
icommands-package : external libs clients
resource : external libs plugins-nodb irods
resource-package : external libs plugins-nodb irods
external :
@$(MAKE) -C external default
libs : code-generation external
@$(MAKE) -C iRODS libs
clients : libs
@$(MAKE) -C iRODS clients
@$(MAKE) -C plugins auth network
plugins-nodb : libs external
@$(MAKE) -C plugins nodb
postgres : libs external
@$(MAKE) -C postgres
mysql : libs external
@$(MAKE) -C mysql
oracle : libs external
@$(MAKE) -C oracle
code-generation : external
@# generate the json derived code for the new api
@./external/$(AVROVERSION)/build/avrogencpp \
-n irods \
-o ./iRODS/lib/core/include/server_control_plane_command.hpp \
-i ./irods_schema_messaging/v1/server_control_plane_command.json
irods : libs
@$(MAKE) -C iRODS
docs : doxygen mkdocs
@cp -r doxygen/html/* mkdocs/html/doxygen
doxygen :
@echo "Generating Doxygen..."
@../doxygen/bin/doxygen Doxyfile 1> /dev/null
@cp doxygen/doxy-boot.js doxygen/html
@cp doxygen/custom.css doxygen/html
mkdocs :
@echo "Generating Mkdocs..."
@./docs/generate_icommands_md.sh
@mkdir -p docs/doxygen
@touch docs/doxygen/index.html
@mkdocs build --clean
@cp iRODS/images/* mkdocs/html/
@find mkdocs/html -name '*.html' -type f -exec sed -i 's/TEMPLATE_IRODSVERSION/$(IRODSVERSION)/g' {} \;
epm :
@$(MAKE) -C external epm
clean :
@touch iRODS/config/platform.mk iRODS/config/config.mk
@$(MAKE) -C plugins clean
@$(MAKE) -C iRODS clean
@$(MAKE) -C examples/microservices clean
@$(MAKE) -C examples/resources clean
@rm -rf doxygen/html
@rm -rf mkdocs/html
@rm -rf docs/icommands
squeaky_clean : clean
@$(MAKE) -C external clean