0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-12 06:58:55 +02:00

Makefiles: Fix bashisms. (#88)

This commit is contained in:
Jason Volk 2022-07-25 13:39:27 -07:00
parent 0afb5bf847
commit f0569247f4
2 changed files with 20 additions and 8 deletions

View file

@ -95,8 +95,14 @@ install-mkdirs: $(DEPS) $(BUILT_SOURCES)
install: install-mkdirs install: install-mkdirs
@echo "ircd: installing headers" @echo "ircd: installing headers"
@for i in $(srcdir)/*; do \ @for i in $(srcdir)/*; do \
if [[ "$$i" != "./Makefile"* ]] && [[ "$$i" != *.h.gch ]]; then \ case "$$i" in \
echo "installing $$i to $(DESTDIR)$(includedir)"; \ "./Makefile"*) \
cp -u -r $$i $(DESTDIR)$(includedir); \ ;; \
fi \ *".h.gch") \
;; \
*) \
echo "installing $$i to $(DESTDIR)$(includedir)"; \
cp -u -r $$i $(DESTDIR)$(includedir); \
;; \
esac \
done done

View file

@ -14,8 +14,14 @@ install-mkdirs:
install: install-mkdirs install: install-mkdirs
@echo "ircd: installing shared assets" @echo "ircd: installing shared assets"
@for i in $(srcdir)/*; do \ @for i in $(srcdir)/*; do \
if [[ "$$i" != "./Makefile"* ]] && [[ "$$i" != "README.md" ]]; then \ case "$$i" in \
echo "installing $$i to $(DESTDIR)$(datadir)"; \ "./Makefile"*) \
cp -r $$i $(DESTDIR)$(datadir); \ ;; \
fi \ "README.md") \
;; \
*) \
echo "installing $$i to $(DESTDIR)$(datadir)"; \
cp -u -r $$i $(DESTDIR)$(datadir); \
;; \
esac \
done done