moth/packages/tanks/tanks.mk

39 lines
1.3 KiB
Makefile
Raw Normal View History

2010-10-25 17:17:10 -06:00
TANKS_PKGDIR = $(TARGET)/tanks
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-02-23 17:29:34 -07:00
tanks-source: $(TANKS_BUILDDIR)
$(TANKS_BUILDDIR):
git clone $(TANKS_URL) $@
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
# "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
$(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:
rm -rf $(TANKS_BUILDDIR)
PACKAGES += tanks