Browse Source

* Makefile.am: Add samba to SUBDIRS. Forcedly set DISTDIRS to
extfs. Remove parts that are now handled by samba/Makefile.
* samba/Makefile.in: Add more empty targets for Automake
compatibility.

Pavel Roskin 23 years ago
parent
commit
23ef3d3a9d
3 changed files with 25 additions and 19 deletions
  1. 5 0
      vfs/ChangeLog
  2. 12 15
      vfs/Makefile.am
  3. 8 4
      vfs/samba/Makefile.in

+ 5 - 0
vfs/ChangeLog

@@ -1,5 +1,10 @@
 2002-07-02  Pavel Roskin  <proski@gnu.org>
 
+	* Makefile.am: Add samba to SUBDIRS.  Forcedly set DISTDIRS to
+	extfs.  Remove parts that are now handled by samba/Makefile.
+	* samba/Makefile.in: Add more empty targets for Automake
+	compatibility.
+
 	* ftpfs.c (send_ftp_command): Use "anonymous@" as default
 	anonymous password.
 	From Eduardo Perez Ureta" <eperez@it.uc3m.es>

+ 12 - 15
vfs/Makefile.am

@@ -1,4 +1,10 @@
+if USE_SAMBA_FS
+SUBDIRS = samba extfs
+else
 SUBDIRS = extfs
+endif
+
+DIST_SUBDIRS = extfs
 
 if USE_SAMBA_FS
 AM_CFLAGS = $(GLIB_CFLAGS) -DCONFIGDIR=\""@configdir@"\"
@@ -49,12 +55,12 @@ EXTRA_DIST = ChangeLog README README.fish \
 	$(VFSHDRS) $(BASICFILES) $(NETFILES) $(SMBFILES) $(UNDELFILES)
 
 dist-hook:
-	mkdir $(distdir)/samba
-	mkdir $(distdir)/samba/include
-	mkdir $(distdir)/samba/lib
-	mkdir $(distdir)/samba/libsmb
-	mkdir $(distdir)/samba/param
-	mkdir $(distdir)/samba/tests
+	$(mkinstalldirs) $(distdir)/samba
+	$(mkinstalldirs) $(distdir)/samba/include
+	$(mkinstalldirs) $(distdir)/samba/lib
+	$(mkinstalldirs) $(distdir)/samba/libsmb
+	$(mkinstalldirs) $(distdir)/samba/param
+	$(mkinstalldirs) $(distdir)/samba/tests
 	for I in $(SAMBA_DIST); do \
 	  cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
 	done
@@ -75,11 +81,7 @@ distclean-local:
 	else :; fi
 
 if USE_VFS
-if USE_SAMBA_FS
-noinst_LIBRARIES = libvfs-mc.a samba/libsamba.a
-else
 noinst_LIBRARIES = libvfs-mc.a
-endif
 else
 noinst_LIBRARIES =
 endif
@@ -90,8 +92,6 @@ else
 libvfs_mc_a_SOURCES = $(NONETFILES)
 endif
 
-samba_libsamba_a_SOURCES =
-
 if MCSERV_INSTALL
 sbin_PROGRAMS = mcserv
 else
@@ -104,9 +104,6 @@ mcserv_SOURCES = mcserv.c tcputil.c
 
 mcserv_LDFLAGS = $(SHADOWLIB) $(TERMNET) $(PAMLIBS) $(LCRYPT)
 
-samba/libsamba.a:
-	cd samba && $(MAKE) libsamba.a
-
 SAMBA_DIST =			\
 	Makefile.in		\
 	aclocal.m4		\

+ 8 - 4
vfs/samba/Makefile.in

@@ -139,10 +139,6 @@ libsamba.a: $(SAMBAFILES)
 	  -o $@
 @BROKEN_CC@	-mv `echo $@ | sed 's%^.*/%%g'` $@
 
-install:
-
-uninstall:
-
 etags:
 	etags `find . -name "*.[ch]"`
 
@@ -206,3 +202,11 @@ $(srcdir)/include/config.h.in: $(srcdir)/include/stamp-h.in
 $(srcdir)/include/stamp-h.in: @MAINT@ $(srcdir)/configure.in
 	cd $(srcdir) && $(AUTOHEADER)
 	@date -u > $@
+
+# Added for compatibility with Automake-generated makefiles
+distdir:
+dvi:
+check:
+install:
+installcheck:
+uninstall: