diff options
-rw-r--r-- | externals/Makefile | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/externals/Makefile b/externals/Makefile index 0d07df2b..e453819c 100644 --- a/externals/Makefile +++ b/externals/Makefile @@ -1788,8 +1788,32 @@ zexy: $(zexy_src)/Makefile zexy_install: zexy $(MAKE) -C $(zexy_src) DESTDIR=$(DESTDIR) prefix=$(prefix) \ libdir=$(objectsdir) pkglibdir=$(objectsdir)/$(ZEXY_NAME) install - # remove all .la files (libtool archives) created by autotools +# remove all .la files (libtool archives) created by autotools find $(DESTDIR)$(objectsdir)/$(ZEXY_NAME) -name "*.la" -exec rm {} \; + find $(DESTDIR)$(objectsdir)/$(ZEXY_NAME) -name "*.dll.a" -exec rm {} \; +# add missing aliases +# can't do these on Windows because FAT, NTFS don't support these chars in filenames +# on Windows, these are faked in by loading them as libs +ifneq ($(OS_NAME),windows) + test -e $(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/..$(EXTENSION) || \ + ln -s 0x2e.$(EXTENSION) \ + $(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/..$(EXTENSION) + test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/&&~.$(EXTENSION)' || \ + ln -s 0x260x260x7e.$(EXTENSION) \ + '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/&&~.$(EXTENSION)' + test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/<~.$(EXTENSION)' || \ + ln -s 0x3c0x7e.$(EXTENSION) \ + '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/<~.$(EXTENSION)' + test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/==~.$(EXTENSION)' || \ + ln -s 0x3d0x3d0x7e.$(EXTENSION) \ + '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/==~.$(EXTENSION)' + test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/>~.$(EXTENSION)' || \ + ln -s 0x3e0x7e.$(EXTENSION) \ + '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/>~.$(EXTENSION)' + test -e '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/||~.$(EXTENSION)' || \ + ln -s 0x7c0x7c0x7e.$(EXTENSION) \ + '$(DESTDIR)$(objectsdir)/$(ZEXY_NAME)/||~.$(EXTENSION)' +endif zexy_clean: -$(MAKE) -C $(externals_src)/zexy clean |