On Nov 5, 2007, at 9:46 PM, Jason Curl wrote:
Benoit Sigoure wrote:On Nov 5, 2007, at 11:08 AM, Jason Curl wrote:In the end, everything works like a dream. Here's my solution for those who are interested, or who'd like to do something similar for their projects.----- configure.ac ----- ... AC_PATH_PROG([RMAN], [rman]) test x"$RMAN" = x && $ac_unset RMAN AM_MISSING_PROG([RMAN], [rman]) ... ----- Makefile.am ----- man_MANS = file1.3 file2.3 html_DATA = ($man_MANS:.3=.html) BUILT_SOURCES = $(html_DATA) EXTRA_DIST = $(man_MANS) $(html_DATA)BUILT_SOURCES are automatically distributed, so you can only list man_MANS in EXTRA_DIST.I'm using autoconf-2.61; automake-1.10; libtool-1.5.23aIt's installed when I do 'make install', but it isn't packaged with make dist (I'm doing this via VPATH). I just reconfirmed it on Cygwin after modifying EXTRA_DIST and doing 'autoreconf'.Then I did a tar -tzf mylib.tar.gz and it showed only the elements in $(man_MANS).A known bug maybe? For now I'll leave it in.
Uh. No. --configure.ac------------------------------------------ AC_INIT([actest], [0.42]) AM_INIT_AUTOMAKE([foreign]) AC_PROG_CC AC_CONFIG_FILES([Makefile]) AC_OUTPUT -------------------------------------------------------- --Makefile.am------------------------------------------- bin_PROGRAMS = foo foo_SOURCES = foo.c BUILT_SOURCES = foo.c foo.c: echo 'int main(){return 0;}' >$@ -------------------------------------------------------- [EMAIL PROTECTED] /tmp/ac $ autoreconf -fi [EMAIL PROTECTED] /tmp/ac $ ./configure [...] configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands [EMAIL PROTECTED] /tmp/ac $ make echo 'int main(){return 0;}' >foo.c make all-am make[1]: Entering directory `/private/tmp/ac'gcc -DPACKAGE_NAME=\"actest\" -DPACKAGE_TARNAME=\"actest\" - DPACKAGE_VERSION=\"0.42\" -DPACKAGE_STRING=\"actest\ 0.42\" - DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"actest\" -DVERSION=\"0.42\" - I. -g -O2 -MT foo.o -MD -MP -MF .deps/foo.Tpo -c -o foo.o foo.c
mv -f .deps/foo.Tpo .deps/foo.Po gcc -g -O2 -o foo foo.o make[1]: Leaving directory `/private/tmp/ac' [EMAIL PROTECTED] /tmp/ac $ make dist{ test ! -d actest-0.42 || { find actest-0.42 -type d ! -perm -200 - exec chmod u+w {} ';' && rm -fr actest-0.42; }; }
test -d actest-0.42 || mkdir actest-0.42 find actest-0.42 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \! -type d ! -perm -444 -exec /bin/sh /tmp/ac/install-sh -c -m a+r {} {} \; \
|| chmod -R a+r actest-0.42tardir=actest-0.42 && /bin/sh /tmp/ac/missing --run tar chof - "$tardir" | GZIP=--best gzip -c >actest-0.42.tar.gz { test ! -d actest-0.42 || { find actest-0.42 -type d ! -perm -200 - exec chmod u+w {} ';' && rm -fr actest-0.42; }; }
[EMAIL PROTECTED] /tmp/ac $ tar tvfz actest-0.42.tar.gz drwxrwxrwx 501/0 0 2007-11-06 01:29:41 actest-0.42/-rw-r--r-- 501/0 31848 2007-11-06 01:28:40 actest-0.42/ aclocal.m4
-rwxr-xr-x 501/0 127293 2007-11-06 01:29:32 actest-0.42/configure-rw-r--r-- 501/0 106 2007-11-06 01:27:33 actest-0.42/ configure.ac
-rwxr-xr-x 501/0 17574 2007-11-06 01:26:55 actest-0.42/depcomp -rw-r--r-- 501/0 22 2007-11-06 01:29:39 actest-0.42/foo.c ^^^^^-rwxr-xr-x 501/0 13184 2007-11-06 01:26:55 actest-0.42/ install-sh -rw-r--r-- 501/0 103 2007-11-06 01:27:33 actest-0.42/ Makefile.am -rw-r--r-- 501/0 16990 2007-11-06 01:29:31 actest-0.42/ Makefile.in
-rwxr-xr-x 501/0 11135 2007-11-06 01:26:55 actest-0.42/missing -- Benoit Sigoure aka Tsuna EPITA Research and Development Laboratory
PGP.sig
Description: This is a digitally signed message part