-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.am
33 lines (25 loc) · 1.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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src pam modules/SSH/src
EXTRA_DIST = ChangeLog README.md
install-data-local:
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/latch
-@if [ ! -f $(DESTDIR)$(sysconfdir)/latch/latch.conf ]; then \
cp examples/latch/latch.conf $(DESTDIR)$(sysconfdir)/latch/latch.conf; \
echo "Created ${DESTDIR}$(sysconfdir)/latch/latch.conf"; \
echo "Please edit it to add your Application Id and your Secret Key"; \
else \
echo "Found existing ${DESTDIR}$(sysconfdir)/latch/latch.conf - updating permissions"; \
fi
-chmod 600 $(DESTDIR)$(sysconfdir)/latch/latch.conf
-@if [ ! -f $(DESTDIR)$(sysconfdir)/latch/latch.accounts ]; then \
cp examples/latch/latch.accounts $(DESTDIR)$(sysconfdir)/latch/latch.accounts; \
echo "Created ${DESTDIR}$(sysconfdir)/latch/latch.accounts"; \
else \
echo "Found existing ${DESTDIR}$(sysconfdir)/latch/latch.accounts - updating permissions"; \
fi
-chmod 600 $(DESTDIR)$(sysconfdir)/latch/latch.accounts
uninstall-local:
-@if [ -d $(DESTDIR)$(sysconfdir)/latch ]; then \
echo "Removing latch conf directory..."; \
rm -R $(DESTDIR)$(sysconfdir)/latch; \
fi