PureDocs

source: trunk/autogen.sh @ 184

Revision 184, 267 bytes checked in by will, 5 years ago (diff)

A first go at autoconf'ing PureDocs's build system. This is a big one, so...

First, abstracted off the library targets in the libpuredocs/ Makefile into Mk/shared.mk. In theory this should allow other C libraries to be built by including that Makefile, though, I'm not sure how easy this would work in practice.

Autoconf: added configure.in, a Mk/common.mk file to hold all of the common variables autoconf gives us, like PREFIX, CFLAGS, etc. Added an autogen.sh to run aclocal and autoconf. Moved libpuredocs/Makefile, Makefile, setup.py, and Mk/* to their respective .in files for autoconf to output with variable substitution.

Line 
1#!/bin/sh
2
3for i in 'aclocal -I m4' autoconf; do
4        echo "$i"
5        $i
6        if [ $? -ne 0 ]; then
7                echo "Error $? in $i"
8                exit 1
9        fi
10done
11
12echo "./configure --enable-autogen $@"
13./configure --enable-autogen $@
14if [ $? -ne 0 ]; then
15        echo "Error $? in ./configure"
16        exit 1
17fi
18
Note: See TracBrowser for help on using the repository browser.