Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: unify_build_sy…
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (25 sloc) 0.849 kB
git2pbc := $(patsubst %.winxed,%.pbc,$(wildcard src/Git2/*.winxed))
all: build
build: nci pbclib
test: build rosella
parrot-nqp t/harness
pbclib: $(git2pbc) src/git2.pbc
%.pir: %.winxed
winxed -c -o $@ $<
%.pbc: %.pir
parrot -o $@ $<
rosella: ext/Rosella/Makefile
$(MAKE) -C ext/Rosella build
ln -s ext/Rosella/rosella rosella
nci: src/git2.nci
src/git2.nci:
echo '# THIS FILE IS GENERATED, edit ./bin/header2nci.pl to make changes here' > src/git2.nci ; \
echo "[package]\nGit2::Raw\n\n[lib]\n\nlibgit2.so\n\n[defs]\n" >> src/git2.nci ; \
perl ./bin/header2nci.pl /usr/local/include/git2.h >> src/git2.nci ; \
for i in /usr/local/include/git2/*; do perl ./bin/header2nci.pl $$i >> src/git2.nci ; done
ext/Rosella/Makefile:
git submodule init
git submodule update
.PHONY : clean
clean:
-rm -f $(git2pbc) src/git2.nci rosella
Jump to Line
Something went wrong with that request. Please try again.