Skip to content

Commit

Permalink
Makefile, configure/CONFIG: support MAKEFOR=DOCONLY
Browse files Browse the repository at this point in the history
The new setting lets us build documentation without
an actual matlab or scilab installation on the build
host. (EPICS base is still required because the build
system is being used.)
  • Loading branch information
till-s committed Jul 19, 2022
1 parent 42b6557 commit 5fee1d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
TOP = .
include $(TOP)/configure/CONFIG
DIRS += configure
ifneq ($(MAKEFOR),DOCONLY)
DIRS += ezca
DIRS += glue
endif
DIRS += documentation
ifeq ($(MAKEFOR),MATLAB)
DIRS += matlab
endif
ifneq ($(MAKEFOR),DOCONLY)
DIRS += testing
endif
include $(TOP)/configure/RULES_TOP

UNINSTALL_DIRS+=jar
Expand Down
6 changes: 5 additions & 1 deletion configure/CONFIG
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,14 @@ ifeq ($(MAKEFOR),MATLAB)
else
ifeq ($(MAKEFOR),SCILAB)
else
$(error MAKEFOR variable in configure/CONFIG must be set to MATLAB or SCILAB [currently: "$(MAKEFOR)")
ifneq ($(MAKEFOR),DOCONLY)
$(error MAKEFOR variable in configure/CONFIG must be set to MATLAB, SCILABor DOCONLY [currently: "$(MAKEFOR)")
endif
endif
endif

DOCONLYDIR=""

ifndef $(MAKEFOR)DIR
ifneq ($(strip $($(MAKEFOR)DIR_$(EPICS_HOST_ARCH))),)
$(MAKEFOR)DIR=$($(MAKEFOR)DIR_$(EPICS_HOST_ARCH))
Expand Down

0 comments on commit 5fee1d0

Please sign in to comment.