dcdf68ee96c407b9343b4332565a1f07c33396a4
[captive.git] / src / client / lufs / Makefile.am
1 # $Id$
2 # automake source for the liblufs-captive module for lufs Makefile 
3 # Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 include $(top_srcdir)/Makefile-head.am
20 include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am
21
22 liblufs_captivefs_la_CFLAGS=                   $(GNOME_VFS_CFLAGS) $(LIBXML_CFLAGS)
23 liblufs_captivefs_la_LIBADD=$(captive_library) $(GNOME_VFS_LIBS)
24 liblufs_captivefs_la_LDFLAGS=-release $(VERSION)
25 liblufs_captivefs_la_SOURCES= \
26                 captivefs-attr.c \
27                 captivefs-attr.h \
28                 captivefs-directory.c \
29                 captivefs-file.c \
30                 captivefs-misc.c \
31                 captivefs-misc.h \
32                 captivefs-vfs.c \
33                 captivefs-vfs.h
34
35 if ENABLE_LUFS
36 liblufs_captivefs_la_cond=liblufs-captivefs.la
37 endif
38 lib_LTLIBRARIES+=$(liblufs_captivefs_la_cond)
39
40 if ENABLE_LUFS
41 if ENABLE_SBIN_MOUNT
42 sbin_mount_captive_cond=mount.captive
43 install-exec-hook:
44         $(mkinstalldirs) $(DESTDIR)$(enable_sbin_mountdir)
45         IFS=:; \
46         enable_sbin_mount_fs="$(enable_sbin_mount_fs)"; \
47         for fs in $$enable_sbin_mount_fs; do \
48                 if test $$fs != no; then \
49                         $(RM) $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \
50                         $(LN_S) mount.captive $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \
51                 fi; \
52                 done
53
54 else
55 install-exec-hook:
56         @true
57
58 endif
59 else
60 install-exec-hook:
61         @true
62
63 endif
64 enable_sbin_mount_SCRIPTS=$(sbin_mount_captive_cond)
65
66 EXTRA_DIST+=lufs-captivefs.pod.pl.in
67 CLEANFILES+=lufs-captivefs.pod lufs-captivefs.1
68 EXTRA_DIST+=mount.captive.pod.pl.in
69 CLEANFILES+=mount.captive.pod mount.captive.1
70 if ENABLE_MAN_PAGES
71 if ENABLE_LUFS
72 lufs_captivefs_man_cond=lufs-captivefs.7
73 if ENABLE_SBIN_MOUNT
74 mount_captive_man_cond=mount.captive.8
75 endif
76 endif
77 endif
78 man_MANS=$(lufs_captivefs_man_cond) $(mount_captive_man_cond)