Commit 357bf823 by Ingmar Vanhassel Committed by Shawn O. Pearce

Use install instead of 'cp -f' and 'mkdir -p'.

Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent 3f84b7d3
...@@ -4,6 +4,7 @@ all:: ...@@ -4,6 +4,7 @@ all::
# visibility in general (and the -fvisibility switch in particular). # visibility in general (and the -fvisibility switch in particular).
DOXYGEN = doxygen DOXYGEN = doxygen
INSTALL = install
RANLIB = ranlib RANLIB = ranlib
prefix=/usr/local prefix=/usr/local
...@@ -59,18 +60,18 @@ sparse: ...@@ -59,18 +60,18 @@ sparse:
cgcc -no-compile $(ALL_CFLAGS) $(SPARSE_FLAGS) $(SRC_C) cgcc -no-compile $(ALL_CFLAGS) $(SPARSE_FLAGS) $(SRC_C)
install-headers: $(PUBLIC_HEADERS) install-headers: $(PUBLIC_HEADERS)
@mkdir -p /tmp/gitinc/git @$(INSTALL) -d /tmp/gitinc/git
@for i in $^; do cat .HEADER $$i > /tmp/gitinc/$${i##src/}; done @for i in $^; do cat .HEADER $$i > /tmp/gitinc/$${i##src/}; done
install: $(GIT_LIB) $(PUBLIC_HEADERS) libgit2.pc install: $(GIT_LIB) $(PUBLIC_HEADERS) libgit2.pc
@mkdir -p $(DESTDIR)/$(prefix)/include/git @$(INSTALL) -d $(DESTDIR)/$(prefix)/include/git
@for i in $(PUBLIC_HEADERS); do \ @for i in $(PUBLIC_HEADERS); do \
cat .HEADER $$i > $(DESTDIR)/$(prefix)/include/$${i##src/}; \ cat .HEADER $$i > $(DESTDIR)/$(prefix)/include/$${i##src/}; \
done done
@mkdir -p $(DESTDIR)/$(libdir) @$(INSTALL) -d $(DESTDIR)/$(libdir)
@cp -f $(GIT_LIB) $(DESTDIR)/$(libdir)/libgit2.a @$(INSTALL) $(GIT_LIB) $(DESTDIR)/$(libdir)/libgit2.a
@mkdir -p $(DESTDIR)/$(libdir)/pkgconfig @$(INSTALL) -d $(DESTDIR)/$(libdir)/pkgconfig
@cp -f libgit2.pc $(DESTDIR)/$(libdir)/pkgconfig/libgit2.pc @$(INSTALL) libgit2.pc $(DESTDIR)/$(libdir)/pkgconfig/libgit2.pc
uninstall: uninstall:
@rm -f $(DESTDIR)/$(libdir)/libgit2.a @rm -f $(DESTDIR)/$(libdir)/libgit2.a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment