Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Mar 16, 2012
1 parent 3203196 commit 81bd720
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
deps
out
options.gypi
*.xcodeproj
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
BUILDTYPE ?= Debug

all: out/Makefile
$(MAKE) -C out V=1 BUILDTYPE=$(BUILDTYPE) -j4
-ln -fs out/Debug/monitoring-agent monitoring-agent
-ln -fs out/Debug/monitoring.zip monitoring.zip
-ln -fs out/Debug/monitoring-test.zip monitoring-test.zip

out/Release/monitoring-agent: all

out/Makefile:
./configure

clean:
rm -rf out

distclean:
rm -rf out

VERSION=$(shell git describe)
TARNAME=spedye-$(VERSION)

dist:
git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
tar -cf $(TARNAME).tar $(TARNAME)
rm -rf $(TARNAME)
gzip -f -9 $(TARNAME).tar

update:
git submodule foreach git fetch && git submodule update --init --recursive

.PHONY: clean dist distclean all test tests

0 comments on commit 81bd720

Please sign in to comment.