Skip to content

Commit

Permalink
FIX: ACCIDENTALL LOST A TARGET
Browse files Browse the repository at this point in the history
  • Loading branch information
ceejbot committed Apr 27, 2020
1 parent e3249b2 commit e956a21
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
OSES = apple-darwin unknown-linux-musl
OSES = apple-darwin unknown-linux-gnu unknown-linux-musl
OS_TARGETS := $(foreach a,$(OSES),$(a)-arch)
EXECS = LOUDBOT PRUNE SEED
TEXTS = MALCOLM CATS SEEDS SHIPS STAR_FIGHTING
Expand All @@ -9,19 +9,18 @@ NORMAL=\033[m
all: release

%.tar: %-build
@echo "$(TARGET)"
tar cf $@ -C target/x86_64-$*/release $(EXECS)
tar f $@ -r $(TEXTS)
@tar cf $@ -C target/x86_64-$*/release $(EXECS)
@tar f $@ -r $(TEXTS)

%.tar.gz: %.tar
@gzip $<

%-build:
@echo "building for $*"
@echo "Building $(BOLD)$*$(NORMAL)..."
@cross build --release --target x86_64-$*

$(OS_TARGETS): %-arch: %.tar.gz
@echo " $(BOLD)$@$(NORMAL) done.\n"
@echo " done.\n"

release: $(OS_TARGETS)
@mkdir -p releases
Expand Down

0 comments on commit e956a21

Please sign in to comment.