Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Avoid rebuilding documentation in distributed sources, so users don't…
Browse files Browse the repository at this point in the history
… need luadoc installed.
  • Loading branch information
rrthomas committed Feb 7, 2013
1 parent 05920f7 commit 4ddb909
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile.am
Expand Up @@ -21,6 +21,13 @@ DISTCLEANFILES = $(PACKAGE).rockspec

ROCKSPEC = $(PACKAGE)-$(VERSION)-1.rockspec

# In order to avoid regenerating std.lua at configure time, which
# causes the documentation to be rebuilt and hence requires users to
# have luadoc installed, put src/std.lua in as a Makefile dependency.
# (Strictly speaking, distributing an AC_CONFIG_FILE would be wrong.)
src/std.lua: src/std.lua.in
./config.status --file=$@

$(dist_doc_DATA): $(SOURCES)
cd src && luadoc *.lua

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -12,5 +12,5 @@ AX_PROG_LUA([$LUA_MIN_VERSION], [5.3])

dnl Generate output files
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_FILES(Makefile $PACKAGE.rockspec luarocks-config.lua src/std.lua)
AC_CONFIG_FILES(Makefile $PACKAGE.rockspec luarocks-config.lua)
AC_OUTPUT

0 comments on commit 4ddb909

Please sign in to comment.