-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (24 loc) · 830 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
MANDIR ?= $(PREFIX)/share/man
all:
@echo Run \'make install\' to install Truelies.
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@mkdir -p $(DESTDIR)$(MANDIR)/man1
@cp -p truelies $(DESTDIR)$(PREFIX)/bin/truelies
@cp -p truelies.1 $(DESTDIR)$(MANDIR)/man1
@chmod 755 $(DESTDIR)$(PREFIX)/bin/truelies
@echo You have successfully - installed - Truelies.
uninstall:
@rm -rf $(DESTDIR)$(PREFIX)/bin/truelies
@rm -rf $(DESTDIR)$(MANDIR)/man1/truelies.1*
@echo You have successfully - uninstalled - Truelies.
update:
@echo Starting to Update Truelies.
@git pull
@rm -rf $(DESTDIR)$(PREFIX)/bin/truelies
@rm -rf $(DESTDIR)$(MANDIR)/man1/truelies.1*
@cp -p truelies $(DESTDIR)$(PREFIX)/bin/truelies
@cp -p truelies.1 $(DESTDIR)$(MANDIR)/man1
@chmod 755 $(DESTDIR)$(PREFIX)/bin/truelies
@echo Done.