Skip to content

Commit

Permalink
Update Makefile. PREFIX=/usr
Browse files Browse the repository at this point in the history
  • Loading branch information
dougy147 committed Sep 4, 2024
1 parent 7ec307f commit 7479f40
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,22 @@

OS = $(shell uname -s)
ifndef PREFIX
PREFIX = /usr/local
PREFIX = /usr
endif
ifndef MANPREFIX
MANPREFIX = $(PREFIX)/man
endif

install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
for script in bin/*; do \
cp -f $$script $(DESTDIR)$(PREFIX)/bin/; \
chmod 755 $(DESTDIR)$(PREFIX)/$$script; \
done
cp -f 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:
for script in bin/*; do \
rm -f $(DESTDIR)$(PREFIX)/$$script; \
done
rm -f $(DESTDIR)$(PREFIX)/bin/scitopdf
rm -rf $(DESTDIR)$(PREFIX)/share/scitopdf
rm -f $(DESTDIR)$(MANPREFIX)/man1/scitopdf.1

Expand Down

0 comments on commit 7479f40

Please sign in to comment.