forked from urbanairship/protobuf-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 666 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (20 loc) · 666 Bytes
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
.PHONY: all rockspec build clean
VERSION=1.1.0
BUILDDIR = build
NAME = protobuf-$(VERSION)-0
all: build
rockspec:
mkdir -p $(BUILDDIR)
sed "s/%VERSION%/$(VERSION)/g" protobuf.rockspec > $(BUILDDIR)/protobuf-$(VERSION)-0.rockspec
build: rockspec
mkdir -p $(BUILDDIR)/$(NAME)
mkdir -p $(BUILDDIR)/$(NAME)/lua/protobuf
mkdir -p $(BUILDDIR)/$(NAME)/src
cp README.md LICENSE $(BUILDDIR)/$(NAME)/
cp -R protobuf/*.lua $(BUILDDIR)/$(NAME)/lua/protobuf/
cp -R protobuf/*.c $(BUILDDIR)/$(NAME)/src/
cp -R protoc-plugin $(BUILDDIR)/$(NAME)/
(cd $(BUILDDIR); tar czvpf $(NAME).tar.gz $(NAME)/)
clean:
rm -rf $(BUILDDIR)
find . -name "*.pyc" -exec rm -rf {} \;