commit: a364a1caaa3441ecf125872644a4b1c2c1d4abc6
parent: 14cd0fec836cf228b2279da0c53ae43a32d7b1fb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 7 Jan 2019 06:08:34 +0100
Makefile: Add install target
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,9 +1,13 @@
-LIBS=$(shell pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0)
+LIBS = $(shell pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0)
+PREFIX ?= /usr/local
badwolf: badwolf.c
$(CC) $(CFLAGS) $(LIBS) -o $@ $@.c
+install: badwolf
+ install badwolf $(DESTDIR)$(PREFIX)/bin/badwolf
+
clean:
rm badwolf
-.PHONY: clean
+.PHONY: clean install