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 \
|
2022-07-25 22:39:27 +02:00
|
|
|
case "$$i" in \
|
|
|
|
"./Makefile"*) \
|
|
|
|
;; \
|
|
|
|
"README.md") \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
echo "installing $$i to $(DESTDIR)$(datadir)"; \
|
|
|
|
cp -u -r $$i $(DESTDIR)$(datadir); \
|
|
|
|
;; \
|
|
|
|
esac \
|
2018-09-14 05:59:52 +02:00
|
|
|
done
|