/Makefile (6a872c109697bbd051d53bb2843fa84b3331b42e) (1816 bytes) (mode 100644) (type blob)
NAME=honeydew
VERSION=0_1WIP
CLASSIFIER=1_27
LANG=en
NAMEFULL=$(NAME)-$(VERSION)-$(CLASSIFIER)-$(LANG)
NAMEASSEMBLY=$(NAME)-$(VERSION)-project
BUILDDIR=target
BASEDIR=.
.PRECIOUS: *.w3x *.w3m *.w3n
.PHONY: clean test $(BUILDDIR)/$(NAMEASSEMBLY).zip
GIT=git
GPG=gpg
M4=m4
SMPQ=smpq
PJASS=pjass
PJASS_OPTS=etc/common.j etc/Blizzard.j -rb +filter +shadow +checkglobalsinit +checkstringhash
SNIPPETS=$(wildcard src/*.j)
WAR3EXE=Frozen\ Throne.exe
# TODO add configurable map path for testing
MAPSDIR="Maps/$(NAME)/"
vpath *.j src:$(BUILDDIR)
include src/Makefile
sinclude Makefile.config
sinclude test/Makefile
build: $(BUILDDIR)/$(NAMEFULL).w3x $(BUILDDIR)/war3map.j
$(PJASS) $(PJASS_OPTS) "$(BUILDDIR)/war3map.j"
cd "$(BUILDDIR)" && \
$(SMPQ) --append --overwrite "$(NAMEFULL).w3x" "war3map.j" && \
$(SMPQ) --list "$(NAMEFULL).w3x"
binary: $(BUILDDIR)/$(NAMEASSEMBLY).zip $(BUILDDIR)/$(NAMEASSEMBLY).zip.sig
$(BUILDDIR)/$(NAMEFULL).w3x: $(NAME).w3x
cp -T $(NAME).w3x $(BUILDDIR)/$(NAMEFULL).w3x
$(BUILDDIR):
mkdir -p "$(BUILDDIR)"
$(BUILDDIR)/war3map.j: $(BUILDDIR) src/jass_include.m4 $(SNIPPETS)
$(PJASS) $(PJASS_OPTS) $(SNIPPETS) $(TESTS)
$(M4) --debug=aeqp -I $(BASEDIR) src/jass_include.m4 $(SNIPPETS) $(TESTS) > "$(BUILDDIR)/war3map.j"
$(BUILDDIR)/$(NAMEASSEMBLY).zip: .git/HEAD
$(GIT) archive --format zip --output "$(BUILDDIR)/$(NAMEASSEMBLY).zip" --prefix "$(NAME)/" HEAD
$(BUILDDIR)/$(NAMEASSEMBLY).zip.sig: $(BUILDDIR)/$(NAMEASSEMBLY).zip
$(GPG) --detach-sign --yes "$(BUILDDIR)/$(NAMEASSEMBLY).zip"
clean:
$(GIT) clean -i -x "$(BUILDDIR)"
test: build
# Path to the map relative to data directory (game installation directory in almost every case).
# Must be given exact file name. Wildcards or tokens will not be expanded.
$(WAR3EXE) -loadfile "Maps/${NAME}/${NAMEFULL}.w3x"
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
62 |
23d45784c16a32fc81b613c5f5b8242939f71386 |
.gitignore |
100644 |
blob |
77 |
b8691bde4ff7ef827f11499ad8fef50d75a74a8a |
AUTHORS.txt |
100644 |
blob |
7048 |
0e259d42c996742e9e3cba14c677129b2c1b6311 |
COPYING.txt |
100644 |
blob |
1816 |
6a872c109697bbd051d53bb2843fa84b3331b42e |
Makefile |
100644 |
blob |
1481 |
eca50c78019a1153cba4a7939bee0abd3752daad |
README.md |
040000 |
tree |
- |
688689aeb4a9da4fcdd1b50f31c007e743e5e823 |
doc |
040000 |
tree |
- |
f9ee6be2d61f77fcd63b8eceddeb0bd26ab1df5b |
etc |
100644 |
blob |
28827 |
7a8abb11c47fc4488ec5e5c96b4004e2e92ff2ce |
honeydew.w3x |
040000 |
tree |
- |
fbc63663819475c6c6883328c6326c93cad68736 |
src |
040000 |
tree |
- |
c49ae159828944ed48eca1484c3c9435b7ff75bb |
test |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/honeydew
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/honeydew
Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/honeydew
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main