-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
72 lines (61 loc) · 2.1 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
DISTCHECK_CONFIGURE_FLAGS = \
--with-scriptdir=$$dc_install_base/lib/udev \
--with-rulesdir=$$dc_install_base/lib/udev/rules.d
rules_DATA = 80-uam.rules
script_DATA = uam-common.sh
script_SCRIPTS = uam-mount.sh uam-umount.sh find-helper.sh
bin_SCRIPTS = uam-pmount uam-pumount
dist_script_DATA = src/array.awk src/mounts.awk
dist_conf_DATA = uam.conf
mfhookdir = ${hookdir}/mount-failed
mbhookdir = ${hookdir}/pre-mount
mahookdir = ${hookdir}/post-mount
ubhookdir = ${hookdir}/pre-umount
uahookdir = ${hookdir}/post-umount
dist_mfhook_DATA = uam-hooks/mount-failed/90_sw_notify
dist_mahook_DATA = uam-hooks/post-mount/90_sw_notify \
uam-hooks/post-mount/95_pmount_cache
dist_uahook_DATA = uam-hooks/post-umount/90_sw_notify
dist_ubhook_DATA = uam-hooks/pre-umount/00_filter_devices
dist_mbhook_DATA = uam-hooks/pre-mount/00_filter_devices \
uam-hooks/pre-mount/00_wait_for_media
EXTRA_DIST = 80-uam.rules.in \
src/uam-common.sh src/uam-mount.sh src/uam-umount.sh src/find-helper.sh \
src/uam-pmount src/uam-pumount
CLEANFILES = $(rules_DATA) $(script_DATA) $(script_SCRIPTS) $(bin_SCRIPTS) .keep
$(rules_DATA): Makefile
rm -f $@ [email protected]
@SED@ -e "s|/lib/udev/uam|${scriptdir}|" ${srcdir}/[email protected] > [email protected]
chmod a-w [email protected]
mv [email protected] $@
$(script_SCRIPTS) $(bin_SCRIPTS): Makefile
rm -f $@ [email protected]
@SED@ -e "s|^\(LIBDIR=\).*$$|\1${scriptdir}|" ${srcdir}/src/$@ > [email protected]
chmod +x [email protected]
chmod a-w [email protected]
mv [email protected] $@
$(script_DATA): Makefile
rm -f $@ [email protected]
@SED@ \
-e 's|^\(CONFDIR=\).*$$|\1${confdir}|' \
-e 's|^\(SYSLIBDIR=\).*$$|\1${libdir}|' \
-e 's|^\(HOOKDIR=\).*$$|\1${hookdir}|' \
-e "s|^\(VERSION=\).*$$|\1@VERSION@|" \
${srcdir}/src/$@ > [email protected]
chmod +x [email protected]
chmod a-w [email protected]
mv [email protected] $@
.keep:
touch $@
80-uam.rules: 80-uam.rules.in
uam-common.sh: src/uam-common.sh
uam-mount.sh: src/uam-mount.sh
uam-umount.sh: src/uam-umount.sh
find-helper.sh: src/find-helper.sh
uam-pmount: src/uam-pmount
uam-pumount: src/uam-pumount
EXTRA_DIST += NEWS
NEWS: configure.ac Makefile.am
git for-each-ref refs/tags --sort '-*committerdate' \
--format '# %(tag) (%(*committerdate:short))%0a%(contents:body)' \
> NEWS