blob: 8aedb4cf815fe78d367bb6056d71dc985c052c28 [file] [log] [blame]
Chris Lattneraba51222008-03-03 01:22:28 +00001##===- clang/Headers/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
10LEVEL = ../../..
11include $(LEVEL)/Makefile.common
12
13HeaderDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/Headers
14
15HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.h))
16
17OBJHEADERS := $(addprefix $(HeaderDir)/, $(HEADERS))
18
19
20$(OBJHEADERS): $(HeaderDir)/%.h: $(PROJ_SRC_DIR)/%.h $(HeaderDir)/.dir
21 cp $< $@
22
23printit:
24 echo $(OBJHEADERS)
25 echo $(PROJ_SRC_DIR)
26
27# Hook into the standard Makefile rules.
28all-local:: $(OBJHEADERS)
29
30PROJ_headers := $(DESTDIR)$(PROJ_prefix)/Headers
31
32INSTHEADERS := $(addprefix $(PROJ_headers)/, $(HEADERS))
33
34$(INSTHEADERS): $(PROJ_headers)/%.h: $(HeaderDir)/%.h $(PROJ_headers)/.dir
35 $(Verb) $(DataInstall) $< $(PROJ_headers)
36
37install-local:: $(INSTHEADERS)
38