forked from LLNL/sundials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (38 loc) · 1.3 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
# ------------------------------------------------------------------------------
# Programmer(s): David J. Gardner @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
# See the top-level LICENSE and NOTICE files for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# SUNDIALS Copyright End
# ------------------------------------------------------------------------------
# Makefile to build or clean all RST package docs at once
# ------------------------------------------------------------------------------
DIRS = arkode/guide arkode/examples \
cvode/guide \
cvodes/guide \
ida/guide \
idas/guide \
kinsol/guide
# prefix with desired command to create unique dependencies/targets
LATEXDIRS = $(DIRS:%=latexpdf-%)
HTMLDIRS = $(DIRS:%=html-%) html-superbuild
CLEANDIRS = $(DIRS:%=clean-%) clean-superbuild
latexpdf: $(LATEXDIRS)
$(LATEXDIRS):
$(MAKE) -C $(@:latexpdf-%=%) latexpdf
html: $(HTMLDIRS)
$(HTMLDIRS):
$(MAKE) -C $(@:html-%=%) html
clean: $(CLEANDIRS)
$(CLEANDIRS):
$(MAKE) -C $(@:clean-%=%) clean
.PHONY: $(LATEXDIRS)
.PHONY: $(HTMLDIRS)
.PHONY: $(CLEANDIRS)
.PHONY: latexpdf html clean