blob: 99c3309c18e3a51684b2da5e85bdcf11005b6245 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
all: devserver
@echo "Preparing devserver modules."
mkdir -p "${DESTDIR}/usr/bin"
mkdir -p "${DESTDIR}/usr/lib/devserver"
mkdir -p "${DESTDIR}/usr/lib/devserver/dut-scripts"
install -m 0755 host/start_devserver "${DESTDIR}/usr/bin"
install -m 0755 "${DESTDIR}/usr/lib/devserver"
install -m 0644 \ \ \ \ \
nebraska/ \ \
install -m 0755 stateful_update "${DESTDIR}/usr/bin"
# The content in /var/lib is only meaningful for installation in
# a chroot, not for Moblab.
mkdir -m0777 -p "${DESTDIR}/var/lib/devserver"
mkdir -m0777 -p "${DESTDIR}/var/lib/devserver/static"
mkdir -m0777 -p "${DESTDIR}/var/lib/devserver/static/cache"
# The dut-scripts content is only used when installed on Moblab.
# Mode 0644 for these files because they're for serving to DUTs
# over HTTP, not for local execution.
install -m 0644 stateful_update \
install -m 0644 quick-provision/quick-provision \
.PHONY: all devserver install