2018-09-14 05:59:52 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# IRCd read-only data (share) assets.
|
|
|
|
#
|
|
|
|
|
|
|
|
datadir = @datadir@/$(PACKAGE_TARNAME)
|
|
|
|
|
|
|
|
install-mkdirs:
|
2019-01-20 20:10:47 +01:00
|
|
|
-@if test ! -d $(DESTDIR)$(datadir); then \
|
2019-01-20 17:40:50 +01:00
|
|
|
echo "mkdir -p $(DESTDIR)$(datadir)"; \
|
|
|
|
mkdir -p $(DESTDIR)$(datadir); \
|
2018-09-14 05:59:52 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
install: install-mkdirs
|
|
|
|
@echo "ircd: installing shared assets"
|
|
|
|
@for i in $(srcdir)/*; do \
|
|
|
|
if [[ "$$i" != "./Makefile"* ]] && [[ "$$i" != "README.md" ]]; then \
|
|
|
|
echo "installing $$i to $(DESTDIR)$(datadir)"; \
|
|
|
|
cp -r $$i $(DESTDIR)$(datadir); \
|
|
|
|
fi \
|
|
|
|
done
|