mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
23 lines
563 B
Text
23 lines
563 B
Text
|
################################################################################
|
||
|
#
|
||
|
# IRCd read-only data (share) assets.
|
||
|
#
|
||
|
|
||
|
datadir = @datadir@/$(PACKAGE_TARNAME)
|
||
|
data_DATA = share/
|
||
|
|
||
|
install-mkdirs:
|
||
|
-@if test ! -d $(datadir); then \
|
||
|
echo "mkdir -p $(datadir)"; \
|
||
|
mkdir -p $(datadir); \
|
||
|
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
|