Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / remoting / host / installer / linux / Makefile
blob06851ce461a36e4890ac5311dcb98f256f5cd8e3
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.
5 # This Makefile is used by debhelper, which supplies the appropriate value of
6 # variables not defined here, such as DESTDIR.
8 SRC_DIR = ../../../..
9 BUILD_DIR = $(SRC_DIR)/out/Release
11 CRON_DIR = $(DESTDIR)/etc/cron.daily
12 DOC_DIR = $(DESTDIR)/usr/share/doc/chrome-remote-desktop
13 INSTALL_DIR = $(DESTDIR)/opt/google/chrome-remote-desktop
14 NATIVE_MESSAGING_DIR = $(DESTDIR)/etc/opt/chrome/native-messaging-hosts
16 ME2ME_PROGNAME = $(BUILD_DIR)/remoting_me2me_host
17 ME2ME_DEBUGFILE = $(ME2ME_PROGNAME).debug
18 START_PROGNAME = $(BUILD_DIR)/remoting_start_host
19 START_DEBUGFILE = $(START_PROGNAME).debug
20 ME2ME_NM_PROGNAME = $(BUILD_DIR)/native_messaging_host
21 ME2ME_NM_DEBUGFILE = $(ME2ME_NM_PROGNAME).debug
22 REMOTE_ASSISTANCE_PROGNAME = $(BUILD_DIR)/remote_assistance_host
23 REMOTE_ASSISTANCE_DEBUGFILE = $(REMOTE_ASSISTANCE_PROGNAME).debug
25 all:
27 install:
28 install -d "$(CRON_DIR)"
29 install -d "$(DOC_DIR)"
30 install -d "$(INSTALL_DIR)"
31 install -d "$(INSTALL_DIR)/remoting_locales"
32 install -d "$(NATIVE_MESSAGING_DIR)"
34 install "$(SRC_DIR)/remoting/host/linux/linux_me2me_host.py" \
35 "$(INSTALL_DIR)/chrome-remote-desktop"
36 install "$(SRC_DIR)/remoting/host/installer/linux/is-remoting-session" \
37 "$(INSTALL_DIR)"
39 install -m 0644 \
40 "$(BUILD_DIR)/remoting/com.google.chrome.remote_desktop.json" \
41 "$(NATIVE_MESSAGING_DIR)/com.google.chrome.remote_desktop.json"
43 install -m 0644 \
44 "$(BUILD_DIR)/remoting/com.google.chrome.remote_assistance.json" \
45 "$(NATIVE_MESSAGING_DIR)/com.google.chrome.remote_assistance.json"
47 eu-strip -f "$(ME2ME_DEBUGFILE)" "$(ME2ME_PROGNAME)"
48 install "$(ME2ME_PROGNAME)" \
49 "$(INSTALL_DIR)/chrome-remote-desktop-host"
51 eu-strip -f "$(START_DEBUGFILE)" "$(START_PROGNAME)"
52 install "$(START_PROGNAME)" "$(INSTALL_DIR)/start-host"
54 eu-strip -f "$(ME2ME_NM_DEBUGFILE)" "$(ME2ME_NM_PROGNAME)"
55 install "$(ME2ME_NM_PROGNAME)" "$(INSTALL_DIR)/native-messaging-host"
57 eu-strip -f "$(REMOTE_ASSISTANCE_DEBUGFILE)" \
58 "$(REMOTE_ASSISTANCE_PROGNAME)"
59 install "$(REMOTE_ASSISTANCE_PROGNAME)" \
60 "$(INSTALL_DIR)/remote-assistance-host"
62 install -m 0644 \
63 "$(BUILD_DIR)/icudtl.dat" "$(INSTALL_DIR)/icudtl.dat"
65 for locale in $$(ls $(BUILD_DIR)/remoting_locales); do \
66 install "$(BUILD_DIR)/remoting_locales/$$locale" \
67 "$(INSTALL_DIR)/remoting_locales/$$locale"; \
68 done
70 install $(BUILD_DIR)/remoting/installer/cron/chrome-remote-desktop \
71 "$(CRON_DIR)/chrome-remote-desktop"
73 install -m 0644 \
74 "$(BUILD_DIR)/gen/remoting/CREDITS.txt" "$(DOC_DIR)/CREDITS.txt"