2010-10-25 17:17:10 -06:00
|
|
|
TANKS_PKGDIR = $(TARGET)/tanks
|
2011-03-08 23:06:21 -07:00
|
|
|
TANKS_CACHE = $(CACHE)/tanks.git
|
2010-10-25 17:17:10 -06:00
|
|
|
TANKS_BUILDDIR = $(BUILD)/tanks
|
2011-02-23 17:29:34 -07:00
|
|
|
TANKS_URL = "http://woozle.org/~neale/projects/ctanks"
|
2010-10-25 17:17:10 -06:00
|
|
|
|
2011-03-08 23:06:21 -07:00
|
|
|
$(TANKS_CACHE):
|
|
|
|
git clone --bare $(TANKS_URL) $@
|
|
|
|
|
2011-02-23 17:29:34 -07:00
|
|
|
tanks-source: $(TANKS_BUILDDIR)
|
2011-03-08 23:06:21 -07:00
|
|
|
$(TANKS_BUILDDIR): $(TANKS_CACHE)
|
|
|
|
git clone $< $@
|
2010-10-25 17:17:10 -06:00
|
|
|
|
|
|
|
tanks-build: tanks-source
|
2011-02-23 17:29:34 -07:00
|
|
|
$(MAKE) -C $(TANKS_BUILDDIR)
|
2010-10-25 17:17:10 -06:00
|
|
|
|
2010-10-26 16:43:51 -06:00
|
|
|
# "html" instead of "www" to prevent automatic links
|
2010-10-25 17:17:10 -06:00
|
|
|
tanks-install: tanks-build
|
2010-10-26 13:02:26 -06:00
|
|
|
mkdir -p $(TANKS_PKGDIR)/bin
|
2011-02-23 17:29:34 -07:00
|
|
|
cp $(TANKS_BUILDDIR)/forftanks $(TANKS_PKGDIR)/bin
|
|
|
|
cp $(TANKS_BUILDDIR)/designer.cgi $(TANKS_PKGDIR)/bin
|
|
|
|
cp $(TANKS_BUILDDIR)/rank.awk $(TANKS_PKGDIR)/bin
|
|
|
|
cp $(TANKS_BUILDDIR)/winner.awk $(TANKS_PKGDIR)/bin
|
2010-10-26 13:02:26 -06:00
|
|
|
|
2010-10-26 16:43:51 -06:00
|
|
|
$(call COPYTREE, packages/tanks/html, $(TANKS_PKGDIR)/html)
|
|
|
|
cp packages/mcp/www/ctf.css $(TANKS_PKGDIR)/html/style.css
|
|
|
|
cp packages/mcp/www/grunge.png $(TANKS_PKGDIR)/html
|
2011-02-23 17:29:34 -07:00
|
|
|
cp $(TANKS_BUILDDIR)/nav.html.inc $(TANKS_PKGDIR)/html
|
|
|
|
cp $(TANKS_BUILDDIR)/tanks.js $(TANKS_PKGDIR)/html
|
|
|
|
cp $(TANKS_BUILDDIR)/forf.html $(TANKS_PKGDIR)/html
|
|
|
|
cp $(TANKS_BUILDDIR)/intro.html $(TANKS_PKGDIR)/html
|
|
|
|
cp $(TANKS_BUILDDIR)/figures.js $(TANKS_PKGDIR)/html
|
|
|
|
cp $(TANKS_BUILDDIR)/procs.html $(TANKS_PKGDIR)/html
|
|
|
|
cp $(TANKS_BUILDDIR)/designer.js $(TANKS_PKGDIR)/html
|
2010-10-26 13:02:26 -06:00
|
|
|
|
|
|
|
$(call COPYTREE, packages/tanks/service, $(TANKS_PKGDIR)/service)
|
|
|
|
|
2011-02-23 17:29:34 -07:00
|
|
|
$(call COPYTREE, $(TANKS_BUILDDIR)/examples, $(TANKS_PKGDIR)/examples)
|
2010-10-25 17:17:10 -06:00
|
|
|
|
|
|
|
tanks-clean:
|
2010-10-26 16:43:51 -06:00
|
|
|
rm -rf $(TANKS_BUILDDIR)
|
|
|
|
|
|
|
|
PACKAGES += tanks
|