summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-07-20 17:04:11 -0400
committerOri Bernstein <orib@google.com>2012-07-20 17:04:11 -0400
commit4c30ad734992fcf09bf6fc7d7a9206d0f2372e4f (patch)
tree08a199f1c69df96258e2c26c34ed05d03b0877b9 /mk
parented0f9a4eed4cde25ea0000fe9777577effd8c1ae (diff)
downloadmc-4c30ad734992fcf09bf6fc7d7a9206d0f2372e4f.tar.gz
Be less noisy about installs.
Diffstat (limited to 'mk')
-rw-r--r--mk/c.mk28
1 files changed, 20 insertions, 8 deletions
diff --git a/mk/c.mk b/mk/c.mk
index fffd208..5ff4ac4 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -52,20 +52,32 @@ clean: subdirs-clean
install-bin: $(INSTBIN)
- mkdir -p $(INST_ROOT)/bin
- test -z "$(INSTBIN)" || install $(INSTBIN) $(INST_ROOT)/bin
+ @if [ ! -z "$(INSTBIN)" ]; then \
+ echo install $(INSTBIN) $(INST_ROOT)/bin; \
+ mkdir -p $(INST_ROOT)/bin; \
+ install $(INSTBIN) $(INST_ROOT)/bin; \
+ fi
install-lib: $(INSTLIB)
- mkdir -p $(INST_ROOT)/lib
- test -z "$(INSTLIB)" || install $(INSTLIB) $(INST_ROOT)/lib
+ @if [ ! -z "$(INSTLIB)" ]; then \
+ echo install $(INSTLIB) $(INST_ROOT)/lib; \
+ mkdir -p $(INST_ROOT)/lib; \
+ install $(INSTLIB) $(INST_ROOT)/lib; \
+ fi
install-hdr: $(INSTHDR)
- mkdir -p $(INST_ROOT)/$(HDRDIR)/include
- test -z "$(INSTHDR)" || install $(INSTHDR) $(INST_ROOT)/include
+ @if [ ! -z "$(INSTHDR)" ]; then \
+ echo install $(INSTHDR) $(INST_ROOT)/include; \
+ mkdir -p $(INST_ROOT)/include; \
+ install $(INSTHDR) $(INST_ROOT)/include; \
+ fi
install-pc: $(INSTPKG)
- mkdir -p $(INST_ROOT)/pkgconfig
- test -z "$(INSTPC)" || install $(INSTPC) $(INST_ROOT)/pkgconfig
+ @if [ ! -z "$(INSTPKG)" ]; then \
+ echo install $(INSTPKG) $(INST_ROOT)/lib/pkgconfig; \
+ mkdir -p $(INST_ROOT)/lib/pkgconfig; \
+ install $(INSTPKG) $(INST_ROOT)/lib/pkgconfig; \
+ fi
clean-backups:
find ./ -name .*.sw* -exec rm -f {} \;