libdrawtext

diff tools/font2glyphmap/Makefile @ 50:4452a6143d12

install / uninstall targets for font2glyphmap
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 30 Oct 2015 06:26:15 +0200
parents 03699346d59f
children
line diff
     1.1 --- a/tools/font2glyphmap/Makefile	Tue Oct 20 05:52:01 2015 +0300
     1.2 +++ b/tools/font2glyphmap/Makefile	Fri Oct 30 06:26:15 2015 +0200
     1.3 @@ -1,3 +1,5 @@
     1.4 +PREFIX = /usr/local
     1.5 +
     1.6  src = $(wildcard src/*.c)
     1.7  obj = $(src:.c=.o)
     1.8  bin = font2glyphmap
     1.9 @@ -22,3 +24,12 @@
    1.10  .PHONY: clean
    1.11  clean:
    1.12  	rm -f $(obj) $(bin) $(lib_so)
    1.13 +
    1.14 +.PHONY: install
    1.15 +install:
    1.16 +	mkdir -p $(DESTDIR)$(PREFIX)/bin
    1.17 +	cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
    1.18 +
    1.19 +.PHONY: uninstall
    1.20 +uninstall:
    1.21 +	rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)