Create datadir

While $(datadir) is guaranteed to exist because help.txt is already
there $(DESTDIR)$(datadir) is not, so mkdir it before install.
This commit is contained in:
Artem Savkov 2017-09-10 20:06:52 +02:00
parent c4ecc76fae
commit fcb733f73e
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ EXTRA_DIST = discord-help.txt
install-data-local:
if [ -f $(datadir)/help.txt ]; then \
for file in $(EXTRA_DIST); do \
mkdir -p $(DESTDIR)$(datadir); \
$(INSTALL) -m 644 $(srcdir)/$$file $(DESTDIR)$(datadir)/; \
done \
else \