-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
28 lines (24 loc) · 1010 Bytes
/
Makefile
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
PREFIX ?= /usr
all:
@echo Run \'make install\' to install yadshot.
install:
@echo 'Making directories...'
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@mkdir -p $(DESTDIR)$(PREFIX)/share/applications
@mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps
@echo 'Installing yadshot...'
@chmod +x yadshot.sh
@chmod +x filebiner
@cp -p yadshot.sh $(DESTDIR)$(PREFIX)/bin/yadshot
@cp -p filebiner $(DESTDIR)$(PREFIX)/bin/filebiner
@cp -p yadshot.desktop $(DESTDIR)$(PREFIX)/share/applications/yadshot.desktop
@cp -p yadshot.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/yadshot.svg
@echo 'yadshot installed!'
uninstall:
@echo 'Removing files...'
@rm -f $(DESTDIR)$(PREFIX)/bin/yadshot
@rm -f $(DESTDIR)$(PREFIX)/bin/filebiner
@rm -f $(DESTDIR)$(PREFIX)/share/applications/yadshot.desktop
@rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/yadshot.png
@rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/yadshot.svg
@echo 'yadshot uninstalled!'