blob: 98782a4a2808ba2e576863dd9f7e5bb8e31fe153 (
plain)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
#!/usr/bin/make -f
all: install
test:
set -e; for SCRIPT in functions/* examples/*.sh helpers/* hooks/*; \
do \
sh -n $$SCRIPT || exit 1; \
done
install: test
# Installing executables
mkdir -p $(DESTDIR)/usr/bin
cp helpers/lh_* helpers/make-live $(DESTDIR)/usr/bin
# Installing shared data
mkdir -p $(DESTDIR)/usr/share/live-helper
cp -r examples functions hooks includes lists templates $(DESTDIR)/usr/share/live-helper
# Installing documentation
mkdir -p $(DESTDIR)/usr/share/doc/live-helper
cp -r COPYING doc/* $(DESTDIR)/usr/share/doc/live-helper
# Installing manpages
set -e; for MANPAGE in manpages/*.1.en; \
do \
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en`; \
done
set -e; for MANPAGE in manpages/*.7.en; \
do \
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en`; \
done
set -e; for MANPAGE in manpages/*.1.de; \
do \
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/de/man1/`basename $$MANPAGE .de`; \
done
set -e; for MANPAGE in manpages/*.7.de; \
do \
install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/de/man7/`basename $$MANPAGE .de`; \
done
uninstall:
# Uninstalling executables
for HELPER in helpers/*; \
do \
rm -f $(DESTDIR)/usr/bin/`basename $$HELPER`; \
done
# Uninstalling shared data
rm -rf $(DESTDIR)/usr/share/live-helper
# Uninstalling documentation
rm -rf $(DESTDIR)/usr/share/doc/live-helper
# Uninstalling manpages
set -e; for MANPAGE in manpages/*.1.en; \
do \
rm -f $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en`; \
done
set -e; for MANPAGE in manpages/*.7.en; \
do \
rm -f $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en`; \
done
set -e; for MANPAGE in manpages/*.1.de; \
do \
rm -f $(DESTDIR)/usr/share/man/de/man1/`basename $$MANPAGE .de`; \
done
set -e; for MANPAGE in manpages/*.7.de; \
do \
rm -f $(DESTDIR)/usr/share/man/de/man7/`basename $$MANPAGE .de`; \
done
update:
for MANPAGE in manpages/*.de manpages/*.en; \
do \
sed -i -e 's/30.04.2007/07.05.2007/' \
-e 's/2007\\-04\\-30/2007\\-05\\-07/' \
-e 's/1.0~a8/1.0~a9/' \
$$MANPAGE; \
done
sed -i -e 's/1.0~a8/1.0~a9/' functioins/common.sh
clean:
distclean:
reinstall: uninstall install
|