diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-28 12:40:42 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-28 12:40:42 (GMT) |
commit | fe0f57afcf127203f4e7f280a78a1ce96b5471ea (patch) | |
tree | 903e29490e808253544038f77bfb345423f7b3b1 | |
parent | d03656de0b2cf33644a4e5d1d6d759272e21f5e2 (diff) |
Support out-of-source build
-rw-r--r-- | .gitignore | 11 | ||||
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | Makefile.am | 11 | ||||
-rwxr-xr-x | autogen.sh | 13 | ||||
-rw-r--r-- | configure.ac | 4 |
5 files changed, 38 insertions, 10 deletions
@@ -1 +1,10 @@ -build/ +html/ +Makefile +Makefile.in +aclocal.m4 +autom4te.cache/ +config.log +config.status +configure +install-sh +missing diff --git a/Makefile b/Makefile deleted file mode 100644 index 6f41815..0000000 --- a/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -all: build - -.PHONY: build clean - -build: - sphinx-build -b html . build - -clean: - rm -rf build diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..f9f2d65 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,11 @@ +all: build + +.PHONY: build clean + +htmldir = $(builddir)/html + +build: + sphinx-build -b html $(srcdir) $(htmldir) + +clean: + rm -rf $(htmldir) diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..cb3f22f --- /dev/null +++ b/autogen.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. + +olddir=`pwd` +cd "$srcdir" + +autoreconf --install + +cd "$olddir" + +"$srcdir/configure" "$@" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..c01b95b --- /dev/null +++ b/configure.ac @@ -0,0 +1,4 @@ +AC_INIT([sugar-docs], [0.1], [dwnarvaez@gmail.com]) +AM_INIT_AUTOMAKE([foreign]) +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |