mirror of
https://github.com/matrix-construct/construct
synced 2025-01-16 17:46:54 +01:00
Merge pull request #3 from DanySpin97/share-destdir
Respect destdir and datadir values
This commit is contained in:
commit
41bb6001a6
2 changed files with 2 additions and 3 deletions
|
@ -811,7 +811,6 @@ dnl
|
||||||
dnl datadir
|
dnl datadir
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
datadir="$prefix/share"
|
|
||||||
AC_SUBST_DIR([datadir])
|
AC_SUBST_DIR([datadir])
|
||||||
RB_DEFINE_UNQUOTED([DATA_DIR], ["$datadir/${PACKAGE_TARNAME}"], [Directory where read-only assets go.])
|
RB_DEFINE_UNQUOTED([DATA_DIR], ["$datadir/${PACKAGE_TARNAME}"], [Directory where read-only assets go.])
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ datadir = @datadir@/$(PACKAGE_TARNAME)
|
||||||
|
|
||||||
install-mkdirs:
|
install-mkdirs:
|
||||||
-@if test ! -d $(datadir); then \
|
-@if test ! -d $(datadir); then \
|
||||||
echo "mkdir -p $(datadir)"; \
|
echo "mkdir -p $(DESTDIR)$(datadir)"; \
|
||||||
mkdir -p $(datadir); \
|
mkdir -p $(DESTDIR)$(datadir); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install: install-mkdirs
|
install: install-mkdirs
|
||||||
|
|
Loading…
Add table
Reference in a new issue