Skip to content

Commit

Permalink
Fix portability
Browse files Browse the repository at this point in the history
  • Loading branch information
gotthardp committed Jul 23, 2019
1 parent 30bebc4 commit 79872f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ mercuryapi: mercuryapi-$(APIVER)/.done
make -C mercuryapi-$(APIVER)/c/src/api

mkdir -p build/mercuryapi/include
find mercuryapi-*/c/src/api -type f -name '*.h' ! -name '*_imp.h' | grep -v 'ltkc_win32' | xargs cp -t build/mercuryapi/include
find mercuryapi-*/c/src/api -type f -name '*.h' ! -name '*_imp.h' ! -path '*ltkc_win32*' -exec cp {} build/mercuryapi/include/ \;

mkdir -p build/mercuryapi/lib
find mercuryapi-*/c/src/api -type f -name '*.a' -or -name '*.so.1' | xargs cp -t build/mercuryapi/lib
find mercuryapi-*/c/src/api -type f \( -name '*.a' -or -name '*.so.1' \) -exec cp {} build/mercuryapi/lib/ \;

mercuryapi-$(APIVER)/.done: $(APIZIP)
unzip $(APIZIP)
patch -p0 -d mercuryapi-$(APIVER) < mercuryapi.patch
touch mercuryapi-$(APIVER)/.done

$(APIZIP):
wget https://www.jadaktech.com/wp-content/uploads/2018/11/$(APIZIP)
curl https://www.jadaktech.com/wp-content/uploads/2018/11/$(APIZIP) -o $(APIZIP)

0 comments on commit 79872f3

Please sign in to comment.