-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
86 lines (81 loc) · 3.49 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
## 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-samba; \
for pixmap in $(srcdir)/pixmaps/*; do \
if test -f $$pixmap; then \
$(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-samba; \
fi \
done \
fi;
if test -d $(DESTDIR)$(datadir)/pixmaps; then \
cp $(srcdir)/pixmaps/gadmin-samba.png $(DESTDIR)$(datadir)/pixmaps/; \
fi;
if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-samba; then \
ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-samba; \
fi;
@echo "Failsafe for a mixed environment"
if test -f $(DESTDIR)/usr/local/bin/consolehelper && test ! -f $(DESTDIR)/usr/local/bin/gadmin-samba; then \
ln -s $(DESTDIR)/usr/local/bin/consolehelper $(DESTDIR)/usr/local/bin/gadmin-samba; \
fi;
if test -d $(DESTDIR)$(sysconfdir)/pam.d; then \
cp etc/pam.d/gadmin-samba $(DESTDIR)$(sysconfdir)/pam.d/; \
fi;
if test -d $(DESTDIR)$(sysconfdir)/security/console.apps; then \
cp etc/security/console.apps/gadmin-samba $(DESTDIR)$(sysconfdir)/security/console.apps/; \
fi;
if test -d $(DESTDIR)$(datadir)/applications; then \
cp desktop/gadmin-samba.desktop $(DESTDIR)$(datadir)/applications/; \
fi;
if test ! -d $(DESTDIR)$(datadir)/doc/gadmin-samba; then \
$(mkinstalldirs) $(DESTDIR)$(datadir)/doc/gadmin-samba; \
fi;
if test -d $(DESTDIR)$(datadir)/doc/gadmin-samba; then \
cp AUTHORS $(DESTDIR)$(datadir)/doc/gadmin-samba/; \
cp README $(DESTDIR)$(datadir)/doc/gadmin-samba/; \
cp ChangeLog $(DESTDIR)$(datadir)/doc/gadmin-samba/; \
cp COPYING $(DESTDIR)$(datadir)/doc/gadmin-samba/; \
fi;
if test ! -d $(DESTDIR)$(sysconfdir)/gadmin-samba; then \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gadmin-samba; \
fi;
if test -d $(DESTDIR)$(bindir) && test ! -f $(DESTDIR)$(bindir)/gadmin-samba-pdf; then \
cp scripts/gadmin-samba-pdf $(bindir)/; \
fi;
@echo Installing example logon script to $(DESTDIR)$(localstatedir)/lib/samba/netlogon.
if test ! -d $(DESTDIR)$(localstatedir)/lib/samba/netlogon; then \
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/samba/netlogon; \
fi;
if test -d $(DESTDIR)$(localstatedir)/lib/samba/netlogon && \
test ! -f $(DESTDIR)$(localstatedir)/lib/samba/netlogon/example.bat; then \
cp scripts/example.bat $(DESTDIR)$(localstatedir)/lib/samba/netlogon/; \
chmod a+r $(DESTDIR)$(localstatedir)/lib/samba/netlogon/example.bat; \
fi;
@echo Creating the profiles directory $(DESTDIR)$(localstatedir)/lib/samba/profiles.
if test ! -d $(DESTDIR)$(localstatedir)/lib/samba/profiles; then \
$(mkinstalldirs) -m 1755 $(DESTDIR)$(localstatedir)/lib/samba/profiles; \
fi;
@echo Creating the pdf-documents directory $(DESTDIR)$(localstatedir)/lib/samba/pdf-documents.
if test ! -d $(DESTIR)$(localstatedir)/lib/samba/pdf-documents; then \
$(mkinstalldirs) -m 1755 $(DESTDIR)$(localstatedir)/lib/samba/pdf-documents; \
fi;
@echo ""
@echo "Start GADMIN-SAMBA by typing gadmin-samba 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