2010-10-25 17:17:10 -06:00
|
|
|
MCP_PKGDIR = $(TARGET)/mcp
|
2011-03-08 23:06:21 -07:00
|
|
|
MCP_BUILDDIR = $(BUILD)/mcp
|
|
|
|
|
|
|
|
|
2011-10-12 17:41:19 -06:00
|
|
|
##
|
2012-05-10 12:32:09 -06:00
|
|
|
## XXX: clean up eris like router.mk
|
2011-10-12 17:41:19 -06:00
|
|
|
##
|
|
|
|
|
2012-05-10 12:32:09 -06:00
|
|
|
ERIS_CACHE = $(CACHE)/eris.git
|
|
|
|
ERIS_BUILDDIR = $(MCP_BUILDDIR)/eris
|
|
|
|
ERIS_URL = http://woozle.org/~neale/projects/eris
|
2011-10-12 17:41:19 -06:00
|
|
|
|
2012-05-10 12:32:09 -06:00
|
|
|
$(ERIS_CACHE):
|
|
|
|
git clone --bare $(ERIS_URL) $@
|
2011-03-08 23:06:21 -07:00
|
|
|
|
|
|
|
mcp-source: $(MCP_BUILDDIR)/source
|
2012-05-10 12:32:09 -06:00
|
|
|
$(MCP_BUILDDIR)/source: $(ERIS_CACHE)
|
2011-03-08 23:06:21 -07:00
|
|
|
mkdir -p $(@D)
|
2012-05-10 12:32:09 -06:00
|
|
|
git clone $(ERIS_CACHE) $(@D)/eris
|
2011-03-08 23:06:21 -07:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
mcp-build: $(MCP_BUILDDIR)/build
|
|
|
|
$(MCP_BUILDDIR)/build: $(MCP_BUILDDIR)/source
|
|
|
|
$(MAKE) -C packages/mcp/src build
|
2012-05-10 12:32:09 -06:00
|
|
|
$(MAKE) -C $(MCP_BUILDDIR)/eris
|
2011-03-08 23:06:21 -07:00
|
|
|
|
2010-10-21 22:15:18 -06:00
|
|
|
|
2011-03-08 23:06:21 -07:00
|
|
|
mcp-install: $(MCP_BUILDDIR)/build
|
2010-10-21 22:15:18 -06:00
|
|
|
mkdir -p $(MCP_PKGDIR)
|
|
|
|
|
|
|
|
$(call COPYTREE, packages/mcp/bin, $(MCP_PKGDIR)/bin)
|
2010-10-22 15:03:51 -06:00
|
|
|
cp packages/mcp/src/pointscli $(MCP_PKGDIR)/bin/
|
2010-10-21 22:15:18 -06:00
|
|
|
cp packages/mcp/src/puzzles.cgi $(MCP_PKGDIR)/bin/
|
|
|
|
|
2012-05-10 12:32:09 -06:00
|
|
|
cp $(MCP_BUILDDIR)/eris/eris $(MCP_PKGDIR)/bin/
|
2011-03-08 23:06:21 -07:00
|
|
|
|
2010-10-21 22:15:18 -06:00
|
|
|
$(call COPYTREE, packages/mcp/service, $(MCP_PKGDIR)/service)
|
|
|
|
|
|
|
|
$(call COPYTREE, packages/mcp/www, $(MCP_PKGDIR)/www)
|
|
|
|
cp packages/mcp/src/puzzler.cgi $(MCP_PKGDIR)/www/
|
|
|
|
cp packages/mcp/src/claim.cgi $(MCP_PKGDIR)/www/
|
|
|
|
|
|
|
|
mcp-test: mcp-build
|
|
|
|
packages/mcp/test.sh
|
|
|
|
|
|
|
|
mcp-clean:
|
2011-03-08 23:06:21 -07:00
|
|
|
rm -rf $(MCP_PKGDIR) $(MCP_BUILDDIR)
|
2010-10-21 22:15:18 -06:00
|
|
|
$(MAKE) -C packages/mcp/src clean
|
|
|
|
|
|
|
|
PACKAGES += mcp
|