0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-16 01:43:49 +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
@echo "ircd: installing headers"
@for i in $(srcdir)/*; do \
if [[ "$$i" != "./Makefile"* ]] && [[ "$$i" != *.h.gch ]]; then \
echo "installing $$i to $(DESTDIR)$(includedir)"; \
cp -u -r $$i $(DESTDIR)$(includedir); \
fi \
case "$$i" in \
"./Makefile"*) \
;; \
*".h.gch") \
;; \
*) \
echo "installing $$i to $(DESTDIR)$(includedir)"; \
cp -u -r $$i $(DESTDIR)$(includedir); \
;; \
esac \
done

View file

@ -14,8 +14,14 @@ install-mkdirs:
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 \
case "$$i" in \
"./Makefile"*) \
;; \
"README.md") \
;; \
*) \
echo "installing $$i to $(DESTDIR)$(datadir)"; \
cp -u -r $$i $(DESTDIR)$(datadir); \
;; \
esac \
done