improve Makefile
This commit is contained in:
parent
b4d814d90d
commit
53e0e8b8f0
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -1,13 +1,15 @@
|
|||
TEMP_DIR := $(shell mktemp -d)
|
||||
WORK_DIR := $(TEMP_DIR)/TA-unix
|
||||
TAR_FILE := ./ta-for-unix-and-linux-`head -n1 VERSION`.tgz
|
||||
|
||||
all: release
|
||||
|
||||
release:
|
||||
mkdir -p $(WORK_DIR)
|
||||
cp -R . $(WORK_DIR)/
|
||||
rm -Rf $(WORK_DIR)/Makefile $(WORK_DIR)/.git $(WORK_DIR)/local $(WORK_DIR)/ta-for-unix-and-linux-*.tgz
|
||||
tar -C $(WORK_DIR) -czf ./ta-for-unix-and-linux-`head -n1 VERSION`.tgz TA-unix
|
||||
rm -Rf $(WORK_DIR)/Makefile $(WORK_DIR)/.git $(WORK_DIR)/local $(WORK_DIR)/bin/__pycache__ $(WORK_DIR)/ta-for-unix-and-linux-*.tgz
|
||||
tar -C $(TEMP_DIR) -czf $(TAR_FILE) TA-unix
|
||||
test -d $(HOME)/Downloads && cp $(TAR_FILE) $(HOME)/Downloads
|
||||
rm -Rf $(TEMP_DIR)
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Add table
Reference in a new issue