mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
27 lines
600 B
Makefile
27 lines
600 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 \
|
|
case "$$i" in \
|
|
"./Makefile"*) \
|
|
;; \
|
|
"README.md") \
|
|
;; \
|
|
*) \
|
|
echo "installing $$i to $(DESTDIR)$(datadir)"; \
|
|
cp -u -r $$i $(DESTDIR)$(datadir); \
|
|
;; \
|
|
esac \
|
|
done
|