• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1##===- tools/scan-view/Makefile ----------------------------*- Makefile -*-===##
2#
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9
10CLANG_LEVEL := ../..
11
12include $(CLANG_LEVEL)/../../Makefile.config
13include $(CLANG_LEVEL)/Makefile
14
15CLANG_INSTALL_SCANVIEW ?= 1
16
17ifeq ($(CLANG_INSTALL_SCANVIEW), 1)
18  InstallTargets := $(ToolDir)/scan-view \
19                    $(ShareDir)/scan-view/Reporter.py \
20                    $(ShareDir)/scan-view/ScanView.py \
21                    $(ShareDir)/scan-view/startfile.py \
22                    $(ShareDir)/scan-view/FileRadar.scpt \
23                    $(ShareDir)/scan-view/GetRadarVersion.scpt \
24                    $(ShareDir)/scan-view/bugcatcher.ico
25endif
26
27all:: $(InstallTargets)
28
29$(ToolDir)/%: bin/% Makefile $(ToolDir)/.dir
30	$(Echo) "Copying $(notdir $<) to the 'bin' directory..."
31	$(Verb)cp $< $@
32	$(Verb)chmod +x $@
33
34$(ShareDir)/scan-view/%: share/% Makefile $(ShareDir)/scan-view/.dir
35	$(Echo) "Copying $(notdir $<) to the 'share' directory..."
36	$(Verb)cp $< $@
37
38