diff options
author | Alexandre Oliva <oliva@samba.org> | 1998-09-28 00:14:36 +0000 |
---|---|---|
committer | Alexandre Oliva <oliva@samba.org> | 1998-09-28 00:14:36 +0000 |
commit | 237a8e5fe62d757c04b8207cbbee4df1470cfe4e (patch) | |
tree | 71cfe1e0e678faf3b29c161e8bc19267f680eac9 /source | |
parent | dc21f6c98267afef116a449468129c1d3a8e996b (diff) | |
download | samba-237a8e5fe62d757c04b8207cbbee4df1470cfe4e.tar.gz samba-237a8e5fe62d757c04b8207cbbee4df1470cfe4e.tar.xz samba-237a8e5fe62d757c04b8207cbbee4df1470cfe4e.zip |
automated generation of .dummy files for each subdirectory;
dummy.in files are no longer needed, and new directories will be taken
care of automatically, at configure (or config.status --recheck) time
Diffstat (limited to 'source')
-rw-r--r-- | source/Makefile.in | 11 | ||||
-rw-r--r-- | source/bin/dummy.in | 1 | ||||
-rw-r--r-- | source/client/dummy.in | 1 | ||||
-rw-r--r-- | source/codepages/dummy.in | 1 | ||||
-rwxr-xr-x | source/configure | 21 | ||||
-rw-r--r-- | source/configure.in | 13 | ||||
-rw-r--r-- | source/include/dummy.in | 1 | ||||
-rw-r--r-- | source/include/stamp-h.in | 3 | ||||
-rw-r--r-- | source/lib/dummy.in | 1 | ||||
-rw-r--r-- | source/libsmb/dummy.in | 1 | ||||
-rw-r--r-- | source/locking/dummy.in | 1 | ||||
-rw-r--r-- | source/nmbd/dummy.in | 1 | ||||
-rw-r--r-- | source/param/dummy.in | 1 | ||||
-rw-r--r-- | source/passdb/dummy.in | 1 | ||||
-rw-r--r-- | source/printing/dummy.in | 1 | ||||
-rw-r--r-- | source/rpc_client/dummy.in | 1 | ||||
-rw-r--r-- | source/rpc_parse/dummy.in | 1 | ||||
-rw-r--r-- | source/rpc_server/dummy.in | 1 | ||||
-rw-r--r-- | source/script/dummy.in | 1 | ||||
-rw-r--r-- | source/smbd/dummy.in | 1 | ||||
-rw-r--r-- | source/tests/dummy.in | 1 | ||||
-rw-r--r-- | source/ubiqx/dummy.in | 1 | ||||
-rw-r--r-- | source/utils/dummy.in | 1 | ||||
-rw-r--r-- | source/web/dummy.in | 1 |
24 files changed, 29 insertions, 39 deletions
diff --git a/source/Makefile.in b/source/Makefile.in index 75b6d0a9ff3..b3d047b1d14 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -320,7 +320,7 @@ uninstallcp: @$(SHELL) $(srcdir)/script/uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST) clean: - -rm -f core */*~ *~ */*.o $(PROGS) $(SPROGS) + -rm -f core */*~ *~ */*.o proto: @echo rebuilding include/proto.h @@ -336,7 +336,7 @@ realclean: clean -rm -f config.log $(PROGS) $(SPROGS) distclean: realclean - -rm -f include/config.h include/stamp-h */dummy Makefile + -rm -f include/config.h include/stamp-h Makefile */.dummy -rm -f config.status config.cache -rm -rf .deps @@ -378,6 +378,13 @@ $(srcdir)/include/stamp-h.in: @MAINT@ $(srcdir)/acconfig.h $(srcdir)/configure.i cd $(srcdir) && $(AUTOHEADER) @cd $(srcdir) && echo > include/stamp-h.in +DUMMY_FILES = @DUMMY_FILES@ +DUMMY_BASE = @DUMMY_BASE@ + +Makefile: $(DUMMY_FILES) +$(DUMMY_FILES): + CONFIG_FILES=$@$(DUMMY_BASE) CONFIG_HEADERS= $(SHELL) ./config.status + # automatic dependency tracking rules .deps/.dummy: @-if test ! -d .deps; then rm -rf .deps; mkdir .deps; fi diff --git a/source/bin/dummy.in b/source/bin/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/bin/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/client/dummy.in b/source/client/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/client/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/codepages/dummy.in b/source/codepages/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/codepages/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/configure b/source/configure index 9cac348e429..bea4852b236 100755 --- a/source/configure +++ b/source/configure @@ -5632,6 +5632,13 @@ rm -fr conftest* fi +DUMMY_FILES=`cd ${srcdir-.} >/dev/null && + echo */. | sed 's, ,dummy ,g;s,$,dummy,'` + +DUMMY_BASE=:include/stamp-h.in + + +DUMMY_GEN=`echo "$DUMMY_FILES" | sed "s, ,$DUMMY_BASE ,g;s,\$,$DUMMY_BASE,"` trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -5733,11 +5740,7 @@ done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" -trap 'rm -fr `echo "Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy -web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy -rpc_client/dummy rpc_parse/dummy locking/dummy passdb/dummy -script/dummy include/dummy codepages/dummy libsmb/dummy bin/dummy -utils/dummy printing/dummy include/stamp-h include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +trap 'rm -fr `echo "$DUMMY_GEN Makefile include/stamp-h include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <<EOF @@ -5792,6 +5795,8 @@ s%@AUTOCONF@%$AUTOCONF%g s%@AUTOHEADER@%$AUTOHEADER%g s%@CPP@%$CPP%g s%@LIBOBJS@%$LIBOBJS%g +s%@DUMMY_FILES@%$DUMMY_FILES%g +s%@DUMMY_BASE@%$DUMMY_BASE%g CEOF EOF @@ -5833,11 +5838,7 @@ EOF cat >> $CONFIG_STATUS <<EOF -CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy -web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy -rpc_client/dummy rpc_parse/dummy locking/dummy passdb/dummy -script/dummy include/dummy codepages/dummy libsmb/dummy bin/dummy -utils/dummy printing/dummy include/stamp-h"} +CONFIG_FILES=\${CONFIG_FILES-"$DUMMY_GEN Makefile include/stamp-h"} EOF cat >> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then diff --git a/source/configure.in b/source/configure.in index 37fd7db841e..f6483c6d302 100644 --- a/source/configure.in +++ b/source/configure.in @@ -837,8 +837,11 @@ AC_TRY_RUN([#include "${srcdir-.}/tests/summary.c"], echo "configure OK";, AC_MSG_ERROR([summary failure. Aborting config]),:) -AC_OUTPUT(Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy -web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy -rpc_client/dummy rpc_parse/dummy locking/dummy passdb/dummy -script/dummy include/dummy codepages/dummy libsmb/dummy bin/dummy -utils/dummy printing/dummy include/stamp-h) +DUMMY_FILES=`cd ${srcdir-.} >/dev/null && + echo */. | sed 's, ,dummy ,g;s,$,dummy,'` +AC_SUBST(DUMMY_FILES) +DUMMY_BASE=:include/stamp-h.in +AC_SUBST(DUMMY_BASE) + +DUMMY_GEN=`echo "$DUMMY_FILES" | sed "s, ,$DUMMY_BASE ,g;s,\$,$DUMMY_BASE,"` +AC_OUTPUT($DUMMY_GEN Makefile include/stamp-h) diff --git a/source/include/dummy.in b/source/include/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/include/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/include/stamp-h.in b/source/include/stamp-h.in index 75ac9344846..8b137891791 100644 --- a/source/include/stamp-h.in +++ b/source/include/stamp-h.in @@ -1,2 +1 @@ --rw-r--r-- 1 oliva pos 1394 Sep 21 08:00 acconfig.h --rw-r--r-- 1 oliva pos 24688 Sep 21 08:11 configure.in + diff --git a/source/lib/dummy.in b/source/lib/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/lib/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/libsmb/dummy.in b/source/libsmb/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/libsmb/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/locking/dummy.in b/source/locking/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/locking/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/nmbd/dummy.in b/source/nmbd/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/nmbd/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/param/dummy.in b/source/param/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/param/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/passdb/dummy.in b/source/passdb/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/passdb/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/printing/dummy.in b/source/printing/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/printing/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/rpc_client/dummy.in b/source/rpc_client/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/rpc_client/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/rpc_parse/dummy.in b/source/rpc_parse/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/rpc_parse/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/rpc_server/dummy.in b/source/rpc_server/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/rpc_server/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/script/dummy.in b/source/script/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/script/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/smbd/dummy.in b/source/smbd/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/smbd/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/tests/dummy.in b/source/tests/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/tests/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/ubiqx/dummy.in b/source/ubiqx/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/ubiqx/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/utils/dummy.in b/source/utils/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/utils/dummy.in +++ /dev/null @@ -1 +0,0 @@ - diff --git a/source/web/dummy.in b/source/web/dummy.in deleted file mode 100644 index 8b137891791..00000000000 --- a/source/web/dummy.in +++ /dev/null @@ -1 +0,0 @@ - |