1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00

Add install and uninstall make targets.

This commit is contained in:
bakpakin 2017-07-02 14:56:31 -04:00
parent 7a9e991c41
commit 31ec1e9147

View File

@ -4,6 +4,8 @@
##### Set global variables for all gst Makefiles ##### ##### Set global variables for all gst Makefiles #####
###################################################### ######################################################
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin
VERSION=\"0.0.0-beta\" VERSION=\"0.0.0-beta\"
CFLAGS=-std=c99 -Wall -Wextra -I./include -g -DGST_VERSION=$(VERSION) CFLAGS=-std=c99 -Wall -Wextra -I./include -g -DGST_VERSION=$(VERSION)
@ -57,4 +59,10 @@ test: $(GST_TARGET)
valtest: $(GST_TARGET) valtest: $(GST_TARGET)
valgrind --leak-check=full -v ./$(GST_TARGET) gsttests/basic.gst valgrind --leak-check=full -v ./$(GST_TARGET) gsttests/basic.gst
.PHONY: clean install run debug valgrind test valtest install: $(GST_TARGET)
cp $(GST_TARGET) $(BINDIR)/gst
uninstall:
rm $(BINDIR)/gst
.PHONY: clean install run debug valgrind test valtest install uninstall