mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 08:54:02 +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="$prefix/share"
|
||||
AC_SUBST_DIR([datadir])
|
||||
RB_DEFINE_UNQUOTED([DATA_DIR], ["$datadir/${PACKAGE_TARNAME}"], [Directory where read-only assets go.])
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ datadir = @datadir@/$(PACKAGE_TARNAME)
|
|||
|
||||
install-mkdirs:
|
||||
-@if test ! -d $(datadir); then \
|
||||
echo "mkdir -p $(datadir)"; \
|
||||
mkdir -p $(datadir); \
|
||||
echo "mkdir -p $(DESTDIR)$(datadir)"; \
|
||||
mkdir -p $(DESTDIR)$(datadir); \
|
||||
fi
|
||||
|
||||
install: install-mkdirs
|
||||
|
|
Loading…
Reference in a new issue