mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
21 lines
574 B
Makefile
21 lines
574 B
Makefile
################################################################################
|
|
#
|
|
# IRCd read-only data (share) assets.
|
|
#
|
|
|
|
datadir = @datadir@/$(PACKAGE_TARNAME)
|
|
|
|
install-mkdirs:
|
|
-@if test ! -d $(DESTDIR)$(datadir); then \
|
|
echo "mkdir -p $(DESTDIR)$(datadir)"; \
|
|
mkdir -p $(DESTDIR)$(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
|