Skip to content

Commit

Permalink
Provide a way to suppress the doc build when doing a make / make all
Browse files Browse the repository at this point in the history
A variable EXTRA_BUILD is defined, with a default value of 'doc', that
establishes additional dependencies of the 'all' make target.  This
allows disabling the doc build during make / make all by passing
'EXTRA_BUILD=' on the configure command line.

This relies on the fix for name=value command line arg processing.
  • Loading branch information
Patrick Kelsey committed Mar 19, 2024
1 parent 53d8e34 commit 1f4352c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LDNAME=@LDNAME@
LDNAME_VERSION=@LDNAME_VERSION@
LDNAME_MAJOR=@LDNAME_MAJOR@

all: doc
all: @EXTRA_BUILD@
$(MAKE) -C src all || exit
@echo
@echo
Expand Down
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ PREFIX=${PREFIX:-"/usr/local"}
LDNAME="libck.so"
LDNAME_VERSION="libck.so.$VERSION"
LDNAME_MAJOR="libck.so.$VERSION_MAJOR"
EXTRA_BUILD='doc'

OPTION_CHECKING=1

Expand Down Expand Up @@ -134,6 +135,7 @@ generate()
-e "s#@LDNAME_VERSION@#$LDNAME_VERSION#g" \
-e "s#@PC_CFLAGS@#$PC_CFLAGS#g" \
-e "s#@GIT_SHA@#$GIT_SHA#g" \
-e "s#@EXTRA_BUILD@#$EXTRA_BUILD#g" \
$1 > $2
}

Expand All @@ -158,10 +160,10 @@ generate_stdout()
echo " LDNAME_MAJOR = $LDNAME_MAJOR"
echo " LDFLAGS = $LDFLAGS"
echo " STATIC_LIB = $DISABLE_STATIC"
echo " EXTRA_BUILD = $EXTRA_BUILD"
echo " GZIP = $GZIP"
echo " CORES = $CORES"
echo " POINTER_PACK = $POINTER_PACK_ENABLE"
echo " PPC32_LWSYNC = $PPC32_LWSYNC_ENABLE"
echo " VMA_BITS = $VMA_BITS"
echo " MEMORY_MODEL = $MM"
echo " RTM = $RTM_ENABLE"
Expand Down

0 comments on commit 1f4352c

Please sign in to comment.