Skip to content

Commit 497a614

Browse files
committed
Add "Macaulay2-docs" library for installing pre-generated docs
Passing "--enable-documentation=download" to configure will install it.
1 parent fc571af commit 497a614

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

M2/configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,18 @@ fi
219219
AC_ARG_ENABLE([documentation],
220220
[AS_HELP_STRING([--enable-documentation=...],
221221
[space-delimited list of types of documentation to build; available
222-
options are "html", "info", and "pdf"; default value is "html info"])],
222+
options are "html", "info", and "pdf"; default value is "html info".
223+
"download" will download pre-generated documentation])],
223224
[DOCUMENTATION=$enableval],
224225
[DOCUMENTATION="html info"])
225226

226227
if test "$DOCUMENTATION" = no
227228
then DOCUMENTATION=""
228229
elif test "$DOCUMENTATION" = yes
229230
then DOCUMENTATION="html info"
231+
elif test "$DOCUMENTATION" = download
232+
then DOCUMENTATION=""
233+
BUILDLIST="$BUILDLIST Macaulay2-docs"
230234
else for DOCTYPE in $DOCUMENTATION
231235
do case $DOCTYPE in
232236
html|pdf)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
VERSION = @PACKAGE_VERSION@
2+
3+
CONFIGURECMD = :
4+
5+
INSTALLTARGET = install prefix=@pre_prefix@ exec_prefix=@pre_exec_prefix@
6+
7+
include ../Makefile.library
8+
Makefile: @srcdir@/Makefile.in ; cd ../.. && ./config.status libraries/Macaulay2-docs/Makefile

M2/libraries/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BUILT_TARGETS = patch fetch all check unconfigure reinstall
44
ALL_TARGETS = $(BUILT_TARGETS) clean distclean
55
all:fetch
66
$(ALL_TARGETS): Makefile.library
7-
$(foreach d,@LIBLIST@ @PROGLIST@ libtool M2, \
7+
$(foreach d,@LIBLIST@ @PROGLIST@ M2 Macaulay2-docs, \
88
$(foreach t, $(ALL_TARGETS), \
99
$(eval $t-in-$d:; + $$(MAKE) -C $d $t) \
1010
$(eval .PHONY: $t $t-in-$d)))

M2/m4/files

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ distributions/deb/macaulay2/preinst
2525
libraries/Makefile
2626
libraries/4ti2/Makefile
2727
libraries/M2/Makefile
28+
libraries/Macaulay2-docs/Makefile
2829
libraries/Makefile.library
2930
libraries/cddlib/Makefile
3031
libraries/cddplus/Makefile

0 commit comments

Comments
 (0)