# $Id$ # automake source for the liblufs-captive module for lufs Makefile # Copyright (C) 2003 Jan Kratochvil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; exactly version 2 of June 1991 is required # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA include $(top_srcdir)/Makefile-head.am include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am liblufs_captivefs_la_CFLAGS= $(GNOME_VFS_CFLAGS) $(LIBXML_CFLAGS) liblufs_captivefs_la_LIBADD=$(captive_library) $(GNOME_VFS_LIBS) liblufs_captivefs_la_LDFLAGS=-release $(VERSION) liblufs_captivefs_la_SOURCES= \ captivefs-attr.c \ captivefs-attr.h \ captivefs-directory.c \ captivefs-file.c \ captivefs-misc.c \ captivefs-misc.h \ captivefs-vfs.c \ captivefs-vfs.h if ENABLE_LUFS liblufs_captivefs_la_cond=liblufs-captivefs.la endif lib_LTLIBRARIES+=$(liblufs_captivefs_la_cond) if ENABLE_LUFS if ENABLE_SBIN_MOUNT sbin_mount_captive_cond=mount.captive install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(enable_sbin_mountdir) IFS=:; \ enable_sbin_mount_fs="$(enable_sbin_mount_fs)"; \ for fs in $$enable_sbin_mount_fs; do \ if test $$fs != no; then \ $(RM) $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \ $(LN_S) mount.captive $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \ fi; \ done if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \ if test x$(libdir) != x/lib -a x$(libdir) != x/usr/lib && ! grep -q '^$(libdir)$$' /etc/ld.so.conf;then \ echo -n "WARNING: Add '$(libdir)' to your '/etc/ld.so.conf' and run ldconfig(8)! Press ENTER...";read; \ fi; \ ldconfig || echo -n "WARNING: Failed to run ldconfig(8) - run manually! Press ENTER...";read; \ fi else install-exec-hook: if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \ if test x$(libdir) != x/lib -a x$(libdir) != x/usr/lib && ! grep -q '^$(libdir)$$' /etc/ld.so.conf;then \ echo -n "WARNING: Add '$(libdir)' to your '/etc/ld.so.conf' and run ldconfig(8)! Press ENTER...";read; \ fi; \ ldconfig || echo -n "WARNING: Failed to run ldconfig(8) - run manually! Press ENTER...";read; \ fi endif else install-exec-hook: @true endif enable_sbin_mountPROGRAMS=$(sbin_mount_captive_cond) EXTRA_DIST+=lufs-captivefs.pod.pl.in CLEANFILES+=lufs-captivefs.pod lufs-captivefs.1 EXTRA_DIST+=mount.captive.pod.pl.in CLEANFILES+=mount.captive.pod mount.captive.1 if ENABLE_MAN_PAGES if ENABLE_LUFS lufs_captivefs_man_cond=lufs-captivefs.7 if ENABLE_SBIN_MOUNT mount_captive_man_cond=mount.captive.8 endif endif endif man_MANS=$(lufs_captivefs_man_cond) $(mount_captive_man_cond)