diff --git a/externals/Makefile b/externals/Makefile index 99e2c7e56ea968c98125e260e93a0a613b61451b..26f1cbf5f66c976c41320aef951a45d2f75251c7 100644 --- a/externals/Makefile +++ b/externals/Makefile @@ -1163,16 +1163,28 @@ lyonpotpourri_install: #make -C $(externals_src)/$(LYON_SRC) DESTDIR="$(DESTDIR)" \ # objectsdir="$(objectsdir)" install install -d $(DESTDIR)$(objectsdir)/$(LYON_DEST) - install -d $(DESTDIR)$(objectsdir)/$(LYON_DEST)/sound install -p $(wildcard $(externals_src)/$(LYON_SRC)/*.$(EXTENSION)) \ $(DESTDIR)$(objectsdir)/$(LYON_DEST) - install -p $(externals_src)/$(LYON_SRC)/lyonpotpourri-helpfiles/*.pd \ + install -p $(externals_src)/$(LYON_SRC)/*.pd \ $(DESTDIR)$(objectsdir)/$(LYON_DEST) + install -d $(DESTDIR)$(objectsdir)/$(LYON_DEST)/sound + install -p $(externals_src)/$(LYON_SRC)/examples/*.* \ + $(DESTDIR)$(objectsdir)/$(LYON_DEST)/sound + # some of the help patches expect to find the sounds in the examples + # subfolder instead of 'sound', so make sure that both are available +ifeq ($(OS_NAME),windows) + # symbolic links don't work under Windows, just copy the folder instead + rm -rf $(DESTDIR)$(objectsdir)/$(LYON_DEST)/examples + cp -r $(DESTDIR)$(objectsdir)/$(LYON_DEST)/sound $(DESTDIR)$(objectsdir)/$(LYON_DEST)/examples +else + rm -f $(DESTDIR)$(objectsdir)/$(LYON_DEST)/examples + ln -sf sound $(DESTDIR)$(objectsdir)/$(LYON_DEST)/examples +endif # don't include cartopol/poltocar-- cyclone library already has those rm $(DESTDIR)$(objectsdir)/$(LYON_DEST)/cartopol*.$(EXTENSION) rm $(DESTDIR)$(objectsdir)/$(LYON_DEST)/poltocar*.$(EXTENSION) - install -p $(externals_src)/$(LYON_SRC)/lyonpotpourri-helpfiles/sound/*.* \ - $(DESTDIR)$(objectsdir)/$(LYON_DEST)/sound + rm $(DESTDIR)$(objectsdir)/$(LYON_DEST)/cartopol*.pd + rm $(DESTDIR)$(objectsdir)/$(LYON_DEST)/poltocar*.pd # copy the meta file and the shared lib install -p $(externals_src)/$(LYON_SRC)/*lyonpotpourri*.* \ $(DESTDIR)$(objectsdir)/$(LYON_DEST)