# HG changeset patch # User John Tsiombikas # Date 1446179175 -7200 # Node ID 4452a6143d1256d063928c72ac5624856f2ec64c # Parent 1e72e35a85ee942571ae0da690843d019aa86d3a install / uninstall targets for font2glyphmap diff -r 1e72e35a85ee -r 4452a6143d12 tools/font2glyphmap/Makefile --- a/tools/font2glyphmap/Makefile Tue Oct 20 05:52:01 2015 +0300 +++ b/tools/font2glyphmap/Makefile Fri Oct 30 06:26:15 2015 +0200 @@ -1,3 +1,5 @@ +PREFIX = /usr/local + src = $(wildcard src/*.c) obj = $(src:.c=.o) bin = font2glyphmap @@ -22,3 +24,12 @@ .PHONY: clean clean: rm -f $(obj) $(bin) $(lib_so) + +.PHONY: install +install: + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) + +.PHONY: uninstall +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)