aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f0b83e7ca321d7f8327c9026b0a900ba5723f043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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/*.cc ${CXXFLAGS}
	chmod +x pkgit

install: 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 ${CXXFLAGS}
	chmod +x luatest

repotest: src/setup_repo.cc
	${CC} -o repotest src/setup_repo.cc ${CXXFLAGS}
	chmod +x repotest