Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
ZIP release package in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sam210723 committed Oct 21, 2020
1 parent 674bdd3 commit 75bbdf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
all: release

release: clean
@echo. && @echo ====== Building release package ======
mkdir release
copy /Y src\*.py release
mkdir release\tools
Expand All @@ -15,10 +16,14 @@ release: clean
sass --no-source-map src\html\css:release\html\css
copy /Y src\*.ini release
copy /Y requirements.txt release
7z a xrit-rx.zip ./release/*
rmdir /S /Q release

clean:
@echo. && @echo ====== Cleaning development environment ======
if exist release rmdir /S /Q release
if exist src\__pycache__ rmdir /S /Q src\__pycache__
if exist src\received rmdir /S /Q src\received
if exist xrit-rx.zip del /Q xrit-rx.zip

.PHONY: all clean release

0 comments on commit 75bbdf0

Please sign in to comment.