aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e02bad1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+CC = clang++
+RM = rm -f
+PREFIX ?= /usr/local
+CXXFLAGS = $(shell pkg-config --cflags --libs luajit )
+
+default: pkgit
+
+pkgit: src/main.cc
+ $(CC) -o pkgit src/main.cc -I"./include" $(CXXFLAGS)
+ chmod +x pkgit
+
+install: pkgit
+ install -d $(DESTDIR)$(PREFIX)/bin
+ install -m 755 pkgit $(DESTDIR)$(PREFIX)/bin/pkgit