Skip to content

Commit

Permalink
for darwin &c.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Apr 13, 2022
1 parent fc2d3d5 commit 8b0855a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ release: $(BINS)
done
github-release upload $(GR_OPTIONS) -n ja.1 -f man/ja.1 --replace

darwin-release:
github-release upload $(GR_OPTIONS) -n aarch64-darwin-ja -f bin/aarch64-darwin-ja --replace
github-release upload $(GR_OPTIONS) -n librure.dylib -f /usr/local/lib/librure.dylib --replace

bin/aarch64-darwin-ja: $(HS_SRC)
mkdir -p $(dir $@)
cabal build exe:ja
export BIN=$$(fd 'ja$$' -t x -I); \
cp $$BIN $@ ; \
strip $@

bin/x86_64-linux-ja: $(HS_SRC)
@mkdir -p $(dir $@)
mold -run cabal build exe:ja --builddir=dist-newstyle/x86-linux --enable-executable-static
Expand Down

0 comments on commit 8b0855a

Please sign in to comment.