aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-04-07 13:02:37 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2018-04-07 13:02:37 +0200
commit852e11e052d6507a2be6012d8c1eac93d1bc5d77 (patch)
tree95599d66d7319c4f1f1ba6c89a3d416ba44013dc
parentf43fd8b7265ca1e00b6f72f31e6ea498a21c7d80 (diff)
Corrected headers install
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5d6fc6a..9db60aa 100644
--- a/Makefile
+++ b/Makefile
@@ -88,8 +88,8 @@ install: install-daemon install-lib install-client
# Dossiers d'installation.
- $(IBINDIR) $(ILIBDIR) $(IPKGDIR) \
- $(sort $(patsubst %,$(IINCDIR)/lib$(LIB)-$(VERSION)/%,$(L_INCp))):
+ $(IBINDIR) $(ILIBDIR) $(IPKGDIR) $(sort $(foreach x,$(L_INCp),\
+ $(dir $(IINCDIR)/lib$(LIB)-$(VERSION)/$(x)))):
$(call qcmd,$(MD) "$@")
# ---
@@ -174,8 +174,8 @@ $(eval $(call make-daemon-obj-rule,$(src))))
# Installation de la bibliothèque.
- install-lib: $(CHECKCFG) | $(ILIBDIR) $(IPKGDIR) \
- $(sort $(patsubst %,$(IINCDIR)/lib$(LIB)-$(VERSION)/%,$(L_INCp)))
+ install-lib: $(CHECKCFG) | $(ILIBDIR) $(IPKGDIR) $(sort \
+ $(foreach x,$(L_INCp),$(dir $(IINCDIR)/lib$(LIB)-$(VERSION)/$(x))))
$(call imsg,Installation de la bibliothèque.)
$(call qcmd,$(INST) -m 755 $(L_DEST) \
$(ILIBDIR)/$(notdir $(L_DEST).$(MAJOR)))
@@ -184,7 +184,7 @@ $(eval $(call make-daemon-obj-rule,$(src))))
$(call imsg,Installation du paquet pkg-config.)
$(call qcmd,install -m 644 $(L_PKG) $(IPKGDIR)/$(notdir $(L_PKG)))
$(call imsg,Installation des headers.)
- $(foreach i,$(INC),$(call qcmd,$(INST) -m 644 $(INCDIR)/$(i) \
+ $(foreach i,$(L_INCp),$(call qcmd,$(INST) -m 644 $(L_INCDIR)/$(i) \
"$(IINCDIR)/lib$(LIB)-$(VERSION)/$(i)"$(\n)))
.PHONY: all-lib install-lib