diff options
author | Steve Bennett <steveb@workware.net.au> | 2013-05-18 11:10:21 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2013-05-18 11:10:21 +1000 |
commit | 6957156b7f6468370e3881d006650b82f99b1573 (patch) | |
tree | 46bf29ee528986446ee6b6566b2c91d8e8543788 | |
parent | 7a27fdfe4b023a6b2469473760383f89fcdcb3cf (diff) | |
download | jimtcl-6957156b7f6468370e3881d006650b82f99b1573.zip jimtcl-6957156b7f6468370e3881d006650b82f99b1573.tar.gz jimtcl-6957156b7f6468370e3881d006650b82f99b1573.tar.bz2 |
Allow docs not to be built/installed
With --disable-docs
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | Makefile.in | 12 | ||||
-rw-r--r-- | auto.def | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 5feded3..7aa0785 100644 --- a/Makefile.in +++ b/Makefile.in @@ -62,11 +62,19 @@ all: $(JIMSH) @C_EXT_SHOBJS@ docs: Tcl.html +@if JIM_DOCS +install-docs: docs + mkdir -p $(DESTDIR)$(prefix)/doc/jim + cp Tcl.html $(DESTDIR)$(prefix)/doc/jim +@else +install-docs: +@endif + $(JIMSH): $(LIBJIM) jimsh.o initjimsh.o $(JIMSH_CC) @SH_LINKFLAGS@ $(LDFLAGS) -o $@ jimsh.o initjimsh.o $(LIBJIM) $(LDLIBS) @if JIM_INSTALL -install: all docs @TCL_EXTS@ install-exec +install: all @TCL_EXTS@ install-exec install-docs mkdir -p $(DESTDIR)$(prefix)/lib/jim cp $(LIBJIM) $(DESTDIR)$(prefix)/lib cp @srcdir@/README.extensions @C_EXT_SHOBJS@ $(DESTDIR)$(prefix)/lib/jim @@ -75,8 +83,6 @@ install: all docs @TCL_EXTS@ install-exec cp @srcdir@/jim.h @srcdir@/jim-eventloop.h @srcdir@/jim-signal.h \ @srcdir@/jim-subcmd.h @srcdir@/jim-win32compat.h $(DESTDIR)$(prefix)/include cp jim-config.h $(DESTDIR)$(prefix)/include - mkdir -p $(DESTDIR)$(prefix)/doc/jim - cp Tcl.html $(DESTDIR)$(prefix)/doc/jim mkdir -p $(DESTDIR)$(prefix)/bin cp build-jim-ext $(DESTDIR)$(prefix)/bin @@ -15,6 +15,7 @@ options { full => "Enable some optional features: ipv6, math, utf8, binary, oo, tree" with-jim-shared shared => "build a shared library instead of a static library" jim-regexp=1 => "prefer POSIX regex if over the the built-in (Tcl-compatible) regex" + docs=1 => "don't build or install the documentation" with-jim-ext: {with-ext:"ext1 ext2 ..."} => { Specify additional jim extensions to include. These are enabled by default: @@ -188,6 +189,7 @@ if {[opt-bool shared with-jim-shared]} { define JIM_STATICLIB } define JIM_INSTALL [opt-bool install-jim] +define JIM_DOCS [opt-bool docs] # Attributes of the extensions # tcl=Pure Tcl extension |