···1-commit c44347b3b813e209fff537b4d46d23430727a5e2
2-Author: Bernardo Meurer <meurerbernardo@gmail.com>
3-Date: Tue Feb 25 21:27:39 2020 -0800
4-5- makefile: correctly sed paths
6-7- The default Makefile for tlp makes a mess with catenating `DESTDIR` to
8- everything, but then not actualy using the catenated (_ prefixed)
9- variables to sed it's `.in` files.
10-11- This patch makes sure that it correctly sets the paths, taking `DESTDIR`
12- in account where it makes sense (e.g. /bin where we want $out/bin) but
13- not where it doesn't (/etc/tlp.conf should be just that).
14-15- The reason DESTDIR is used at all, as opposed to the more appropriate
16- PREFIX, is covered in the nix formula, and is (also) due to the Makefile
17- being a bit "different."
18-19-diff --git a/Makefile b/Makefile
20-index b5af74e..95122df 100644
21---- a/Makefile
22-+++ b/Makefile
23-@@ -47,17 +47,17 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
24-25- SED = sed \
26- -e "s|@TLPVER@|$(TLPVER)|g" \
27-- -e "s|@TLP_SBIN@|$(TLP_SBIN)|g" \
28-- -e "s|@TLP_TLIB@|$(TLP_TLIB)|g" \
29-- -e "s|@TLP_FLIB@|$(TLP_FLIB)|g" \
30-- -e "s|@TLP_ULIB@|$(TLP_ULIB)|g" \
31-+ -e "s|@TLP_SBIN@|$(_SBIN)|g" \
32-+ -e "s|@TLP_TLIB@|$(_TLIB)|g" \
33-+ -e "s|@TLP_FLIB@|$(_FLIB)|g" \
34-+ -e "s|@TLP_ULIB@|$(_ULIB)|g" \
35- -e "s|@TLP_CONFUSR@|$(TLP_CONFUSR)|g" \
36- -e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
37-- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
38-+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
39- -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
40- -e "s|@TLP_RUN@|$(TLP_RUN)|g" \
41- -e "s|@TLP_VAR@|$(TLP_VAR)|g" \
42-- -e "s|@TPACPIBAT@|$(TPACPIBAT)|g"
43-+ -e "s|@TPACPIBAT@|$(_TPACPIBAT)|g"
44-45- INFILES = \
46- tlp \