Makefile revision 3551c9c881056c480085172ff9840cab31610854
1# Copyright (c) 2012 The Chromium 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
5# This Makefile is used by debhelper, which supplies the appropriate value of
6# variables not defined here, such as DESTDIR.
7
8SRC = ../../../..
9TOOLS = $(SRC)/remoting/tools
10RELEASE = $(SRC)/out/Release
11
12INSTALL_DIR = $(DESTDIR)/opt/google/chrome-remote-desktop
13CHROME_MANIFEST_DIR = $(DESTDIR)/etc/opt/chrome/native-messaging-hosts
14
15ME2ME_PROGNAME = $(RELEASE)/remoting_me2me_host
16ME2ME_DEBUGFILE = $(ME2ME_PROGNAME).debug
17START_PROGNAME = $(RELEASE)/remoting_start_host
18START_DEBUGFILE = $(START_PROGNAME).debug
19NM_PROGNAME = $(RELEASE)/remoting_native_messaging_host
20NM_DEBUGFILE = $(NM_PROGNAME).debug
21
22all:
23
24install:
25	install -d "$(INSTALL_DIR)"
26	install -d "$(CHROME_MANIFEST_DIR)"
27
28	install "$(TOOLS)/me2me_virtual_host.py" \
29	  "$(INSTALL_DIR)/chrome-remote-desktop"
30	install "$(TOOLS)/is-remoting-session" "$(INSTALL_DIR)"
31
32	install "$(RELEASE)/remoting/com.google.chrome.remote_desktop.json" \
33	  -m 0644 "$(CHROME_MANIFEST_DIR)"
34
35	eu-strip -f "$(ME2ME_DEBUGFILE)" "$(ME2ME_PROGNAME)"
36	install "$(ME2ME_PROGNAME)" \
37	  "$(INSTALL_DIR)/chrome-remote-desktop-host"
38
39	eu-strip -f "$(START_DEBUGFILE)" "$(START_PROGNAME)"
40	install "$(START_PROGNAME)" "$(INSTALL_DIR)/start-host"
41
42	eu-strip -f "$(NM_DEBUGFILE)" "$(NM_PROGNAME)"
43	install "$(NM_PROGNAME)" "$(INSTALL_DIR)/native-messaging-host"
44