Build system: add extra sysconf directories

Closes #5235.
This commit is contained in:
David Adam 2018-11-04 14:45:37 +08:00
parent c2ffd3008a
commit 4f3786f8d0
2 changed files with 6 additions and 1 deletions

View file

@ -612,6 +612,8 @@ install-force: all install-translations install-doc | show-datadir show-sysconfd
@echo "Creating sysconfdir tree"
$v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish
$v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish/conf.d
$v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish/completions
$v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish/functions
$v $(INSTALL) -m 644 etc/config.fish $(DESTDIR)$(sysconfdir)/fish/
@echo "Creating datadir tree"
$v $(INSTALL) -m 755 -d $(DESTDIR)$(datadir)/fish

View file

@ -86,8 +86,11 @@ INSTALL(TARGETS ${PROGRAMS}
# $v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish
# $v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish/conf.d
# $v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish/completions
# $v $(INSTALL) -m 755 -d $(DESTDIR)$(sysconfdir)/fish/functions
# $v $(INSTALL) -m 644 etc/config.fish $(DESTDIR)$(sysconfdir)/fish/
FISH_CREATE_DIRS(${sysconfdir}/fish/conf.d)
FISH_CREATE_DIRS(${sysconfdir}/fish/conf.d ${sysconfdir}/fish/completions
${sysconfdir}/fish/functions)
INSTALL(FILES etc/config.fish DESTINATION ${sysconfdir}/fish/)
FISH_CREATE_DIRS(${rel_datadir}/fish ${rel_datadir}/fish/completions