summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
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 {} \;