summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Ericsson <ae@op5.se>2008-11-18 01:27:29 +0100
committerShawn O. Pearce <spearce@spearce.org>2008-11-18 10:32:53 -0800
commita57e9a8cc15b61ae1ab908b362fd829b3e36e513 (patch)
tree03c3f39467c727707a5522e6ecdb4fd2ef09f8b1
parentd4043ee9d97031e94f205110996d2381dd26c540 (diff)
downloadlibgit2-a57e9a8cc15b61ae1ab908b362fd829b3e36e513.tar.gz
Add a fake and phony install-headers target
It actually does what it's supposed to (more or less), but not very portably and not to the correct directory. Signed-off-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5e78a5bc1..b32af570d 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,10 @@ apidocs:
test: $(TEST_RUN)
+install-headers: $(PUBLIC_HEADERS)
+ @mkdir -p /tmp/gitinc/git
+ @for i in $^; do cat COPYING $$i > /tmp/gitinc/$${i##src/}; done
+
.c.o:
$(CC) $(BASIC_CFLAGS) $(CFLAGS) -c $< -o $@
@@ -87,3 +91,4 @@ $(TEST_RUN): tests/%.run: tests/%.exe
.PHONY: clean
.PHONY: test $(TEST_RUN)
.PHONY: apidocs
+.PHONY: install-headers