Skip to content

Commit 1c4a348

Browse files
cndbrson
authored andcommitted
Correct prefix / CFG_PREFIX work in configure / install.mk
1 parent 8a593a8 commit 1c4a348

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

configure

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,11 @@ valopt target "${CFG_HOST}" "GNUs ./configure syntax LLVM target triples"
394394

395395
valopt localstatedir "/var/lib" "local state directory"
396396
valopt sysconfdir "/etc" "install system configuration files"
397-
valopt datadir "/usr/share" "install data"
398-
valopt infodir "/usr/share/info" "install additional info"
399-
valopt mandir "/usr/share/man" "install man pages in PATH"
400-
valopt libdir "/usr/lib" "install libraries"
397+
398+
valopt datadir "${CFG_PREFIX}/share" "install data"
399+
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
400+
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
401+
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
401402

402403
#Deprecated opts to keep compatibility
403404
valopt build-triple "${DEFAULT_BUILD}" "LLVM build triple"

mk/install.mk

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ install-host: LIB_DESTIN_DIR=$(PHL)
139139
install-host: $(CSREQ$(ISTAGE)_T_$(CFG_BUILD_)_H_$(CFG_BUILD_))
140140
$(Q)$(call MK_INSTALL_DIR,$(PREFIX_BIN))
141141
$(Q)$(call MK_INSTALL_DIR,$(PREFIX_LIB))
142-
$(Q)$(call MK_INSTALL_DIR,$(PREFIX_ROOT)/share/man/man1)
142+
$(Q)$(call MK_INSTALL_DIR,$(CFG_MANDIR/man1)
143143
$(Q)$(call INSTALL,$(HB2),$(PHB),rustc$(X_$(CFG_BUILD)))
144144
$(Q)$(call INSTALL,$(HB2),$(PHB),rustpkg$(X_$(CFG_BUILD)))
145145
$(Q)$(call INSTALL,$(HB2),$(PHB),rustdoc$(X_$(CFG_BUILD)))
@@ -152,9 +152,9 @@ install-host: $(CSREQ$(ISTAGE)_T_$(CFG_BUILD_)_H_$(CFG_BUILD_))
152152
$(Q)$(call INSTALL_LIB,$(LIBRUSTDOC_GLOB_$(CFG_BUILD)))
153153
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME_$(CFG_BUILD)))
154154
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUSTLLVM_$(CFG_BUILD)))
155-
$(Q)$(call INSTALL,$(S)/man, $(PREFIX_ROOT)/share/man/man1,rustc.1)
156-
$(Q)$(call INSTALL,$(S)/man, $(PREFIX_ROOT)/share/man/man1,rustdoc.1)
157-
$(Q)$(call INSTALL,$(S)/man, $(PREFIX_ROOT)/share/man/man1,rustpkg.1)
155+
$(Q)$(call INSTALL,$(S)/man, $(CFG_MANDIR/man1,rustc.1)
156+
$(Q)$(call INSTALL,$(S)/man, $(CFG_MANDIR/man1,rustdoc.1)
157+
$(Q)$(call INSTALL,$(S)/man, $(CFG_MANDIR/man1,rustpkg.1)
158158

159159
install-targets: $(INSTALL_TARGET_RULES)
160160

@@ -180,10 +180,10 @@ uninstall:
180180
do rm -f $$i ; \
181181
done
182182
$(Q)rm -Rf $(PHL)/rustc
183-
$(Q)rm -f $(PREFIX_ROOT)/$(CFG_MANDIR)/man1/rustc.1
184-
$(Q)rm -f $(PREFIX_ROOT)/$(CFG_MANDIR)/man1/rustdoc.1
185-
$(Q)rm -f $(PREFIX_ROOT)/$(CFG_MANDIR)/man1/rusti.1
186-
$(Q)rm -f $(PREFIX_ROOT)/$(CFG_MANDIR)/man1/rustpkg.1
183+
$(Q)rm -f $(CFG_MANDIR)/man1/rustc.1
184+
$(Q)rm -f $(CFG_MANDIR)/man1/rustdoc.1
185+
$(Q)rm -f $(CFG_MANDIR)/man1/rusti.1
186+
$(Q)rm -f $(CFG_MANDIR)/man1/rustpkg.1
187187

188188
# target platform specific variables
189189
# for arm-linux-androidabi

0 commit comments

Comments
 (0)