~sircmpwn/annotatec

c980576901c5eb40e0e1a35e558fd1bbdda5d2ed — Drew DeVault 7 months ago b4aeb2a
Add install target to makefile
1 files changed, 6 insertions(+), 1 deletions(-)

M Makefile
M Makefile => Makefile +6 -1
@@ 1,4 1,5 @@
.DEFAULT_GOAL=annotatec
PREFIX?=/usr/local

CFLAGS+=-g -Wall -Wextra -Wpedantic -Werror \
		-Wno-unused-parameter -Wno-unused-function \


@@ 27,4 28,8 @@ annotatec: $(OBJECTS)
clean:
	rm -f *.o lang.yy.c lang.tab.c lang.tab.h annotatec

.PHONY: clean
install:
	mdkir -p $(DESTDIR)$(PREFIX)usr/bin
	install -m755 annotatec $(DESTDIR)$(PREFIX)/bin/annotatec

.PHONY: clean install