Skip to content

Commit

Permalink
Add github-release makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Jan 30, 2019
1 parent c78df98 commit 7da5f56
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PYMALCOLM = $(error Define PYMALCOLM in CONFIG file)
PANDA_ROOTFS = $(error Define PANDA_ROOTFS in CONFIG file)
PANDA_ROOT = $(error Define PANDA_ROOT in CONFIG file)
MAKE_ZPKG = $(PANDA_ROOTFS)/make-zpkg
MAKE_GITHUB_RELEASE = $(PANDA_ROOTFS)/make-github-release.py
PYTHON = $(PANDA_ROOT)/targets/rootfs/toolkit/bin/python2
BUILD_DIR = $(TOP)/build

Expand Down Expand Up @@ -95,14 +96,18 @@ $(WEBSERVER_ZPKG): $(ZPKG_LIST) $(SOURCES) $(TEMPLATES)

zpkg: $(WEBSERVER_ZPKG)

# Push a github release
github-release: $(WEBSERVER_ZPKG)
$(MAKE_GITHUB_RELEASE) PandABlocks-webcontrol $(GIT_VERSION) $(WEBSERVER_ZPKG)

clean:
rm -rf $(BUILD_DIR)

rebuild:
make clean
make default

.PHONY: clean zpkg rebuild
.PHONY: clean zpkg rebuild github-release

print_admin_dir:
echo $(WEB_ADMIN)/templates

0 comments on commit 7da5f56

Please sign in to comment.