-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
70 lines (65 loc) · 2.59 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
## Process this file with automake to produce Makefile.in
VERSION = @VERSION@
SUBDIRS = src po
EXTRA_DIST = \
autogen.sh
install-data-local:
@$(NORMAL_INSTALL)
if test -d $(srcdir)/pixmaps; then \
$(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gadmin-proftpd; \
for pixmap in $(srcdir)/pixmaps/*; do \
if test -f $$pixmap; then \
$(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-proftpd; \
fi \
done \
fi;
if test -d $(DESTDIR)$(datadir)/pixmaps; then \
cp pixmaps/gadmin-proftpd.png $(DESTDIR)$(datadir)/pixmaps/; \
fi;
if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-proftpd; then \
ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-proftpd; \
fi;
@echo "Failsafe for a mixed environment"
if test -f $(DESTDIR)/usr/local/bin/consolehelper && test ! -f $(DESTDIR)/usr/local/bin/gadmin-proftpd; then \
ln -s $(DESTDIR)/usr/local/bin/consolehelper $(DESTDIR)/usr/local/bin/gadmin-proftpd; \
fi;
if test -d $(DESTDIR)$(sysconfdir)/pam.d; then \
cp etc/pam.d/gadmin-proftpd $(DESTDIR)$(sysconfdir)/pam.d/; \
fi;
if test -d $(DESTDIR)$(sysconfdir)/security/console.apps; then \
cp etc/security/console.apps/gadmin-proftpd $(DESTDIR)$(sysconfdir)/security/console.apps/; \
fi;
if test -d $(DESTDIR)$(datadir)/applications; then \
cp desktop/gadmin-proftpd.desktop $(DESTDIR)$(datadir)/applications/; \
fi;
if test -d $(DESTDIR)$(datadir)/gnome/apps/Internet; then \
cp desktop/gadmin-proftpd.desktop $(DESTDIR)$(datadir)/gnome/apps/Internet/; \
fi;
if test ! -d $(DESTDIR)$(datadir)/doc/gadmin-proftpd; then \
$(mkinstalldirs) $(DESTDIR)$(datadir)/doc/gadmin-proftpd; \
cp AUTHORS $(DESTDIR)$(datadir)/doc/gadmin-proftpd/; \
cp README $(DESTDIR)$(datadir)/doc/gadmin-proftpd/; \
cp ChangeLog $(DESTDIR)$(datadir)/doc/gadmin-proftpd/; \
cp COPYING $(DESTDIR)$(datadir)/doc/gadmin-proftpd/; \
fi;
if test ! -d $(DESTDIR)$(sysconfdir)/gadmin-proftpd; then \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gadmin-proftpd; \
fi;
if test ! -d $(DESTDIR)$(sysconfdir)/gadmin-proftpd; then \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gadmin-proftpd; \
fi;
@echo ""
@echo "Start GAdmin-ProFTPD by typing gadmin-proftpd in a terminal"
@echo "or start it from the menu."
@echo ""
@echo "Send bugreports, comments or questions to [email protected]"
@echo ""
dist-hook:
if test -d pixmaps; then \
mkdir $(DESTDIR)$(distdir)/pixmaps; \
for pixmap in pixmaps/*; do \
if test -f $$pixmap; then \
cp -p $$pixmap $(DESTDIR)$(distdir)/pixmaps; \
fi \
done \
fi