Fix recursive copies in Makefile for OSX (#97)

Co-authored-by: Dave Gittins <david.gittins@imc.com>
This commit is contained in:
gubbins 2020-07-30 23:01:18 +10:00 committed by GitHub
parent 4523a0a25e
commit 5f6ebdfe74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,15 +103,15 @@ ifneq ($(wildcard $(ASSETS_DIR)/.),)
cp -r $(ASSETS_DIR) dist/$(PLUGIN_ID)/ cp -r $(ASSETS_DIR) dist/$(PLUGIN_ID)/
endif endif
ifneq ($(HAS_PUBLIC),) ifneq ($(HAS_PUBLIC),)
cp -r public/ dist/$(PLUGIN_ID)/ cp -r public dist/$(PLUGIN_ID)/
endif endif
ifneq ($(HAS_SERVER),) ifneq ($(HAS_SERVER),)
mkdir -p dist/$(PLUGIN_ID)/server/dist; mkdir -p dist/$(PLUGIN_ID)/server
cp -r server/dist/* dist/$(PLUGIN_ID)/server/dist/; cp -r server/dist dist/$(PLUGIN_ID)/server/
endif endif
ifneq ($(HAS_WEBAPP),) ifneq ($(HAS_WEBAPP),)
mkdir -p dist/$(PLUGIN_ID)/webapp/dist; mkdir -p dist/$(PLUGIN_ID)/webapp
cp -r webapp/dist/* dist/$(PLUGIN_ID)/webapp/dist/; cp -r webapp/dist dist/$(PLUGIN_ID)/webapp/
endif endif
cd dist && tar -cvzf $(BUNDLE_NAME) $(PLUGIN_ID) cd dist && tar -cvzf $(BUNDLE_NAME) $(PLUGIN_ID)