makefile-fix.patch (759B)
1 diff --git a/Makefile b/Makefile 2 index c901b0f..50c02ae 100644 3 --- a/Makefile 4 +++ b/Makefile 5 @@ -1,11 +1,13 @@ 6 -PREFIX= /usr/local 7 +PREFIX ?= /usr/local 8 + 9 +all: 10 11 install: 12 - install -m755 bin/dir2point $(PREFIX)/bin/dir2point 13 - install -m755 bin/md2point $(PREFIX)/bin/md2point 14 - install -m755 bin/point2pdf $(PREFIX)/bin/point2pdf 15 + install -m755 bin/dir2point $(DESTDIR)$(PREFIX)/bin/dir2point 16 + install -m755 bin/md2point $(DESTDIR)$(PREFIX)/bin/md2point 17 + install -m755 bin/point2pdf $(DESTDIR)$(PREFIX)/bin/point2pdf 18 19 uninstall: 20 - rm -f $(PREFIX)/bin/dir2point 21 - rm -f $(PREFIX)/bin/md2point 22 - rm -f $(PREFIX)/bin/point2pdf 23 + rm -f $(DESTDIR)$(PREFIX)/bin/dir2point 24 + rm -f $(DESTDIR)$(PREFIX)/bin/md2point 25 + rm -f $(DESTDIR)$(PREFIX)/bin/point2pdf