From fe0f57afcf127203f4e7f280a78a1ce96b5471ea Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 28 Nov 2012 12:40:42 +0000 Subject: Support out-of-source build --- diff --git a/.gitignore b/.gitignore index 567609b..0342fa7 100644 --- a/.gitignore +++ b/.gitignore @@ -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 -- cgit v0.9.1