moth/packages/00admin/00admin.mk

20 lines
545 B
Makefile
Raw Normal View History

2011-09-23 16:04:25 -06:00
00ADMIN_PKGDIR = $(TARGET)/00admin
2012-06-09 16:11:23 -06:00
00ADMIN_BUILDDIR = $(BUILD)/00admin
2011-09-23 16:04:25 -06:00
2012-06-05 23:56:29 -06:00
ifndef PASSWORD
$(error PASSWORD not defined)
endif
2012-06-09 16:11:23 -06:00
00admin-build: $(00ADMIN_BUILDDIR)/build
$(00ADMIN_BUILDDIR)/build:
$(MAKE) -C packages/00admin/src
00admin-install: $(00ADMIN_BUILDDIR)/build
2011-09-23 16:04:25 -06:00
$(call COPYTREE, packages/00admin/service, $(00ADMIN_PKGDIR)/service)
2012-06-05 23:56:29 -06:00
echo "$(PASSWORD)" > $(00ADMIN_PKGDIR)/password
2012-04-19 17:40:30 -06:00
mkdir -p $(00ADMIN_PKGDIR)/sbin
2012-06-09 16:11:23 -06:00
cp packages/00admin/bin/* $(00ADMIN_PKGDIR)/bin
cp packages/00admin/src/tea $(00ADMIN_PKGDIR)/bin
2011-09-23 16:04:25 -06:00
PACKAGES += 00admin