-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
38 lines (31 loc) · 1.22 KB
/
Makefile.in
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
PREFIX = /usr/local
INSTALL_DEPS = @@INSTALL_DEPS@@
UNINSTALL_DEPS = @@UNINSTALL_DEPS@@
all: install
install_launchd:
cp com.makkintosshu.43f.plist.default /Library/LaunchDaemons/com.makkintosshu.43f.plist
@echo
@echo "Please run 'sudo launchctl load /Library/LaunchDaemons/com.makkintosshu.43f.plist' to install the LaunchDaemon"
install: 43f lib43f 43f.conf.default $(INSTALL_DEPS)
mkdir -p $(PREFIX)/bin
install -m755 43f $(PREFIX)/bin
mkdir -p $(PREFIX)/share/43f
install -m755 lib43f $(PREFIX)/share/43f
sed -i 's@source \.@source $(PREFIX)/share/43f@g' $(PREFIX)/bin/43f
mkdir -p $(PREFIX)/etc
install 43f.conf.default $(PREFIX)/etc
@echo
@echo "For new installations, please copy $(PREFIX)/etc/43f.conf.default to $(PREFIX)/etc/43f.conf and edit as necessary"
@echo
@echo "Next, run '43f init /path/to/43f/repository' to initialize repository"
@echo
@echo "Finally, add '$(PREFIX)/bin/43f run' to the appropriate crontab, see INSTALLING.md"
uninstall_launchd:
launchctl unload /Library/LaunchDaemons/com.makkintosshu.43f.plist
rm /Library/LaunchDaemons/com.makkintosshu.43f.plist
uninstall: $(UNINSTALL_DEPS)
rm $(PREFIX)/bin/43f
rm -r $(PREFIX)/share/43f
rm $(PREFIX)/etc/43f.conf.default
clean:
rm Makefile