-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
50 lines (40 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
MKDIR?=mkdir
RM?=rm
ZIP?=zip
PERL?=/usr/bin/perl
LUA?=lua
LUA_VERSION?=530
# GitHub upload params should be defined in Makefile.local
# GHU_USER: uploader's username
# GHU_PASS: uploader's password
# GHU_REPO: repository where release is created
PKGNAME=packet-bnetp
DISTNAME=packet-bnetp-src
VERSION:=$(shell date +%Y_%m_%d)
REL_TAG:=v$(shell date +%Y.%m.%d)
REL_NAME:=$(REL_TAG)
REL_BODY:=$(REL_TAG)
PKG = \
packet-bnetp-base.lua \
packet-bnetp-bncs.lua \
packet-bnetp-w3gs.lua
DIST = \
$(PKG)
.PHONY: pkg
# Junk the directories in the zip file
# to align with previously released archives.
# TODO: avoid name clashes in PKG
$(PKGNAME)-$(VERSION).zip: $(PKG)
$(ZIP) -9 -j $(PKGNAME)-$(VERSION).zip $(PKG)
pkg: $(PKGNAME)-$(VERSION).zip
## Re-enable when github_upload.py works again
# upload: pkg
# tools/github_upload.py \
# $(GHU_USER) \
# $(GHU_PASS) \
# $(GHU_REPO) \
# $(REL_TAG) \
# $(REL_NAME) \
# $(REL_BODY) \
# -a $(PKGNAME)-$(VERSION).zip:$(PKGNAME)-$(VERSION).zip
-include Makefile.local