Skip to content

Commit

Permalink
chore(build): Backport convinence from develop, set datadir in develo…
Browse files Browse the repository at this point in the history
…per mode
  • Loading branch information
alerque committed Oct 27, 2023
1 parent e7c8fe2 commit da7f9e4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,14 @@ AC_SUBST([LUAROCKSARGS])

AX_SUBST_TRANSFORMED_PACKAGE_NAME

adl_RECURSIVE_EVAL(["${datadir}/${TRANSFORMED_PACKAGE_NAME}"], [SILE_PATH])
# Avoid need for `--datarootdir=$(cd ..; pwd)` hack to run locally for
# tests/manual build when developer mode is enabled
AM_COND_IF([DEVELOPER], [
adl_RECURSIVE_EVAL(["$(pwd)"], [SILE_PATH])
datarootdir="$(cd ..; pwd)"
],[
adl_RECURSIVE_EVAL(["${datadir}/${TRANSFORMED_PACKAGE_NAME}"], [SILE_PATH])
])
AC_DEFINE_UNQUOTED([SILE_PATH],["${SILE_PATH}"],[Path for SILE packages and classes])
AC_SUBST([SILE_PATH])

Expand Down

0 comments on commit da7f9e4

Please sign in to comment.