Skip to content

Commit

Permalink
edit Makefile for release
Browse files Browse the repository at this point in the history
  • Loading branch information
snmsts committed Sep 19, 2023
1 parent defd4fd commit 28be6c6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ uninstall:
rm -f $(PREFIX)/$(TARGET)

####
#dev.
VERSION= $(shell grep :version lib/roswell2.asd |sed 's/^.*"\(.*\)".*$$/\1/')
# " lem fail
ARCHIVE=roswell-$(VERSION)-$(shell uname -m)-$(shell uname -s)
# invoke linux
# alpine for building environment.
alpine:
Expand Down Expand Up @@ -148,6 +152,13 @@ clean:
rm -f *.o
rm -f linkage-table-prelink-info-override.c

download:
ros roswell-internal-use download https://github.com/roswell/sbcl_bin/releases/download/2.3.6/sbcl-2.3.6-arm64-linux-musl-binary.tar.bz2 ./sbcl-2.3.6-arm64-linux-musl-binary.tar.bz2
.PHONY: alpine ubuntu clean install uninstall
archive: $(TARGET)
mkdir $(ARCHIVE)
mkdir $(ARCHIVE)/bin
mkdir $(ARCHIVE)/lib
cp $(TARGET) $(ARCHIVE)/bin
cp -r lib/* $(ARCHIVE)/lib
sed -n "/####/q;p" Makefile > $(ARCHIVE)/Makefile
tar jcvf $(ARCHIVE).tbz $(ARCHIVE)

.PHONY: alpine ubuntu clean install uninstall archive

0 comments on commit 28be6c6

Please sign in to comment.