Commit a57e9a8cc15b61ae1ab908b362fd829b3e36e513

Andreas Ericsson 2008-11-18T01:27:29

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>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/Makefile b/Makefile
index 5e78a5b..b32af57 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