0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00
construct/share/Makefile.am
2018-11-03 06:50:28 -07:00

21 lines
544 B
Makefile

################################################################################
#
# IRCd read-only data (share) assets.
#
datadir = @datadir@/$(PACKAGE_TARNAME)
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