From 446a7f0aaa1083ca0b77286869b6e6cb4ec5defa Mon Sep 17 00:00:00 2001 From: Stephane Bortzmeyer Date: Tue, 25 May 2004 13:55:30 +0000 Subject: [PATCH] Beginning (only the beginning) of the implementation of the dist target for plugins --- SRC/Makefile.am | 2 +- SRC/Makefile.in | 2 +- SRC/plugins/Makefile.in | 7 +++++++ SRC/plugins/dns/Makefile.in | 3 +++ SRC/plugins/postgresql/Makefile.in | 2 ++ SRC/plugins/random/Makefile.in | 4 ++++ SRC/plugins/whois/Makefile.in | 3 +++ 7 files changed, 21 insertions(+), 2 deletions(-) diff --git a/SRC/Makefile.am b/SRC/Makefile.am index 34130cd..6c8be9d 100644 --- a/SRC/Makefile.am +++ b/SRC/Makefile.am @@ -6,7 +6,7 @@ bin_PROGRAMS = echoping man_MANS = echoping.1 echoping_SOURCES = echoping.c error.c readline.c writen.c util.c http.c icp.c HTParse.c echoping.h icp.h HTParse.h smtp.c echoping_LDADD = -DOCS=DETAILS +DOCS=DETAILS PLUGINS SUBDIRS=plugins # Export global symbols to plugins diff --git a/SRC/Makefile.in b/SRC/Makefile.in index 77c75cf..75cbdc1 100644 --- a/SRC/Makefile.in +++ b/SRC/Makefile.in @@ -73,7 +73,7 @@ bin_PROGRAMS = echoping man_MANS = echoping.1 echoping_SOURCES = echoping.c error.c readline.c writen.c util.c http.c icp.c HTParse.c echoping.h icp.h HTParse.h smtp.c echoping_LDADD = -DOCS = DETAILS +DOCS = DETAILS PLUGINS SUBDIRS = plugins # Export global symbols to plugins diff --git a/SRC/plugins/Makefile.in b/SRC/plugins/Makefile.in index f2f75a8..6fa23ce 100644 --- a/SRC/plugins/Makefile.in +++ b/SRC/plugins/Makefile.in @@ -13,3 +13,10 @@ ifneq (${SUBDIRS},) (cd $$subdir && ${MAKE} $@) \ done endif + +distdir: +ifneq (${SUBDIRS},) + @for subdir in ${SUBDIRS}; do \ + (cd $$subdir && ${MAKE} $@) \ + done +endif diff --git a/SRC/plugins/dns/Makefile.in b/SRC/plugins/dns/Makefile.in index cbfb582..659e066 100644 --- a/SRC/plugins/dns/Makefile.in +++ b/SRC/plugins/dns/Makefile.in @@ -16,6 +16,9 @@ install: @echo "Not installing the DNS plugin" endif +distdir: + test -d ../${top_distdir}/plugins/dns || mkdir ../${top_distdir}/plugins/dns + # $Id$ diff --git a/SRC/plugins/postgresql/Makefile.in b/SRC/plugins/postgresql/Makefile.in index 2080aaf..7584a12 100644 --- a/SRC/plugins/postgresql/Makefile.in +++ b/SRC/plugins/postgresql/Makefile.in @@ -17,6 +17,8 @@ install: @echo "Not installing the PostgreSQL plugin" endif +distdir: + test -d ../${top_distdir}/plugins/postgresql || mkdir ../${top_distdir}/plugins/postgresql # $Id$ diff --git a/SRC/plugins/random/Makefile.in b/SRC/plugins/random/Makefile.in index f25c07c..9f8b383 100644 --- a/SRC/plugins/random/Makefile.in +++ b/SRC/plugins/random/Makefile.in @@ -17,6 +17,10 @@ install: @echo "Not installing the random plugin" endif +distdir: + test -d ../${top_distdir}/plugins/random || mkdir ../${top_distdir}/plugins/random + cp random.c Makefile.in configure.ac configure ../${top_distdir}/plugins/random + # $Id$ diff --git a/SRC/plugins/whois/Makefile.in b/SRC/plugins/whois/Makefile.in index 99d82f9..b4b1126 100644 --- a/SRC/plugins/whois/Makefile.in +++ b/SRC/plugins/whois/Makefile.in @@ -17,6 +17,9 @@ install: @echo "Not installing the whois plugin" endif +distdir: + test -d ../${top_distdir}/plugins/whois || mkdir ../${top_distdir}/plugins/whois + # $Id$