aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 63d8a1a..f0b83e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,23 @@
-CC = clang++
-RM = rm -f
-PREFIX ?= /usr/local
-CXXFLAGS = $(shell pkg-config --cflags --libs luajit )
+CC = clang++
+RM = rm -f
+PREFIX ?= /usr/local
+CXXFLAGS += $(shell pkg-config --cflags --libs luajit ) -I./include
default: pkgit
pkgit: src/main.cc
- $(CC) -o pkgit src/main.cc -I"./include" $(CXXFLAGS)
+ ${CC} -o pkgit src/*.cc ${CXXFLAGS}
chmod +x pkgit
install: pkgit
- install -d $(DESTDIR)$(PREFIX)/bin
- install -m 755 pkgit $(DESTDIR)$(PREFIX)/bin/pkgit
+ install -d ${DESTDIR}${PREFIX}/bin
+ install -m 755 pkgit ${DESTDIR}${PREFIX}/bin/pkgit
luatest: src/lua_build.cc
- $(CC) -o luatest src/lua_build.cc -I"./include" $(CXXFLAGS)
+ ${CC} -o luatest src/lua_build.cc ${CXXFLAGS}
chmod +x luatest
+
+repotest: src/setup_repo.cc
+ ${CC} -o repotest src/setup_repo.cc ${CXXFLAGS}
+ chmod +x repotest