-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (20 loc) · 567 Bytes
/
Makefile
File metadata and controls
24 lines (20 loc) · 567 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.POSIX:
OS = $(shell uname -s)
ifndef PREFIX
PREFIX = /usr
endif
ifndef MANPREFIX
MANPREFIX = $(PREFIX)/man
endif
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f ./bin/scitopdf $(DESTDIR)$(PREFIX)/bin/
chmod 755 $(DESTDIR)$(PREFIX)/bin/scitopdf
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f scitopdf.1 $(DESTDIR)$(MANPREFIX)/man1/scitopdf.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/scitopdf.1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/scitopdf
rm -rf $(DESTDIR)$(PREFIX)/share/scitopdf
rm -f $(DESTDIR)$(MANPREFIX)/man1/scitopdf.1
.PHONY: install uninstall