blob: fe2f97cc49196e5b6678398adf5d4100518bc9c7 [file] [log] [blame]
Chris Sosa6039a402012-03-26 15:13:40 -07001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5all: devserver
6
7devserver:
8 @echo "Preparing devserver modules."
9
10install:
11 mkdir -p "${DESTDIR}/usr/bin"
12 mkdir -p "${DESTDIR}/usr/lib/devserver"
Richard Barnette79f629b2018-06-07 16:12:20 -070013 mkdir -p "${DESTDIR}/usr/lib/devserver/dut-scripts"
Chris Sosa6039a402012-03-26 15:13:40 -070014 install -m 0755 host/start_devserver "${DESTDIR}/usr/bin"
Mike Frysingera7f08bc2019-08-27 15:16:33 -040015 install -m 0755 devserver.py strip_package.py "${DESTDIR}/usr/lib/devserver"
Chris Sosa6039a402012-03-26 15:13:40 -070016 install -m 0644 \
Gilad Arnoldc65330c2012-09-20 15:17:48 -070017 builder.py \
Gilad Arnold11fbef42014-02-10 11:04:13 -080018 cherrypy_ext.py \
Keith Haddoweb8e6612019-08-20 15:14:19 -070019 health_checker.py \
Amin Hassani8d718d12019-06-02 21:28:39 -070020 nebraska/nebraska.py \
xixuancf58dd32016-08-24 13:57:06 -070021 setup_chromite.py \
Chris Sosa6039a402012-03-26 15:13:40 -070022 "${DESTDIR}/usr/lib/devserver"
23
Amin Hassanicdd63942020-06-26 09:15:27 -070024 # The dut-scripts content is only used when installed on Moblab.
25 # Mode 0644 for these files because they're for serving to DUTs
26 # over HTTP, not for local execution.
Richard Barnette79f629b2018-06-07 16:12:20 -070027 install -m 0644 quick-provision/quick-provision \
28 "${DESTDIR}/usr/lib/devserver/dut-scripts"
Chris Sosa6039a402012-03-26 15:13:40 -070029
30.PHONY: all devserver install