Merge branch 'master' of ssh://bill@git.dyninst.org/pub/dyninst
[dyninst.git] / dynutil / Makefile
1 # pick up INCLUDE_DEST
2 TO_CORE = ..
3
4 include ../make.config
5
6 LOCAL_INCLUDE_DEST = $(INCLUDE_DEST)
7 CP = cp
8 CP_DIR = cp -r
9
10 TO_INC = h
11 PUBLIC_H = Annotatable.h \
12                 dyntypes.h \
13                 util.h \
14                 Serialization.h \
15                 Graph.h \
16                 Edge.h \
17                 Node.h \
18                 dyn_regs.h \
19                 stl_utils.h \
20                 SymReader.h \
21                 AST.h \
22                 ProcReader.h \
23                 dyn_detail 
24
25 #INSTALL_TARGETS = $(pathsubst %, $(INCLUDE_DEST)/%,$(PUBLIC_H))
26 INSTALL_TARGETS = $(addprefix $(LOCAL_INCLUDE_DEST)/, $(PUBLIC_H))
27 world:
28         @echo Nothing to be done for build
29
30 #install: $(patsubst %,$(INCLUDE_DEST)/%,$(PUBLIC_H))
31 install: $(INSTALL_TARGETS)
32 #       echo INSTALL_TARGETS = $(INSTALL_TARGETS);
33
34 $(LOCAL_INCLUDE_DEST)/%.h: $(TO_INC)/%.h
35         mkdir -p $(LOCAL_INCLUDE_DEST)
36         $(CP) $^ $@
37
38 $(LOCAL_INCLUDE_DEST)/dyn_detail: $(TO_INC)/dyn_detail
39         mkdir -p $(LOCAL_INCLUDE_DEST)
40         $(CP_DIR) $^ $@
41
42
43 clean distclean: