d68f0e8ffce7dc0c55844d9042601dc8e4d570c2
[platform/upstream/oprofile.git] / events / Makefile.am
1 event_files = \
2         alpha/ev67/events alpha/ev67/unit_masks \
3         i386/athlon/events i386/athlon/unit_masks \
4         i386/core_2/events i386/core_2/unit_masks \
5         i386/p4/events i386/p4-ht/events \
6         i386/p4-ht/unit_masks i386/p4/unit_masks \
7         i386/pii/events i386/pii/unit_masks \
8         i386/piii/events i386/piii/unit_masks \
9         i386/ppro/events i386/ppro/unit_masks \
10         i386/p6_mobile/events i386/p6_mobile/unit_masks \
11         i386/core/events i386/core/unit_masks \
12         i386/arch_perfmon/events i386/arch_perfmon/unit_masks \
13         i386/atom/events i386/atom/unit_masks \
14         i386/core_i7/events i386/core_i7/unit_masks \
15         i386/nehalem/events i386/nehalem/unit_masks \
16         i386/westmere/events i386/westmere/unit_masks \
17         i386/sandybridge/events i386/sandybridge/unit_masks \
18         i386/ivybridge/events i386/ivybridge/unit_masks \
19         i386/haswell/events i386/haswell/unit_masks \
20         i386/broadwell/events i386/broadwell/unit_masks \
21         i386/silvermont/events i386/silvermont/unit_masks \
22         ppc64/architected_events_v1/events ppc64/architected_events_v1/unit_masks \
23         ppc64/power4/events ppc64/power4/event_mappings ppc64/power4/unit_masks \
24         ppc64/power5/events ppc64/power5/event_mappings ppc64/power5/unit_masks \
25         ppc64/power5+/events ppc64/power5+/event_mappings ppc64/power5+/unit_masks \
26         ppc64/power5++/events ppc64/power5++/event_mappings ppc64/power5++/unit_masks \
27         ppc64/power6/events ppc64/power6/event_mappings ppc64/power6/unit_masks \
28         ppc64/power7/events ppc64/power7/event_mappings ppc64/power7/unit_masks \
29         ppc64/power8/events ppc64/power8/unit_masks \
30         ppc64/970/events ppc64/970/event_mappings ppc64/970/unit_masks \
31         ppc64/970MP/events ppc64/970MP/event_mappings ppc64/970MP/unit_masks \
32         x86-64/hammer/events x86-64/hammer/unit_masks \
33         x86-64/family10/events x86-64/family10/unit_masks \
34         x86-64/family11h/events x86-64/family11h/unit_masks \
35         x86-64/family12h/events x86-64/family12h/unit_masks \
36         x86-64/family14h/events x86-64/family14h/unit_masks \
37         x86-64/family15h/events x86-64/family15h/unit_masks \
38         x86-64/generic/events x86-64/generic/unit_masks \
39         arm/xscale1/events arm/xscale1/unit_masks \
40         arm/xscale2/events arm/xscale2/unit_masks \
41         arm/armv6/events arm/armv6/unit_masks \
42         arm/armv7-common/events arm/armv7-common/unit_masks \
43         arm/armv7/events arm/armv7/unit_masks \
44         arm/armv7-scorpion/events arm/armv7-scorpion/unit_masks \
45         arm/armv7-scorpionmp/events arm/armv7-scorpionmp/unit_masks \
46         arm/armv7-krait/events arm/armv7-krait/unit_masks \
47         arm/armv7-ca9/events arm/armv7-ca9/unit_masks \
48         arm/armv7-ca5/events arm/armv7-ca5/unit_masks \
49         arm/armv7-ca7/events arm/armv7-ca7/unit_masks \
50         arm/armv7-ca15/events arm/armv7-ca15/unit_masks \
51         arm/mpcore/events arm/mpcore/unit_masks \
52         arm/armv8-pmuv3-common/events arm/armv8-pmuv3-common/unit_masks \
53         arm/armv8-xgene/events arm/armv8-xgene/unit_masks \
54         arm/armv8-ca57/events arm/armv8-ca57/unit_masks \
55         arm/armv8-ca53/events arm/armv8-ca53/unit_masks \
56         mips/20K/events mips/20K/unit_masks \
57         mips/24K/events mips/24K/unit_masks \
58         mips/25K/events mips/25K/unit_masks \
59         mips/34K/events mips/34K/unit_masks \
60         mips/5K/events mips/5K/unit_masks \
61         mips/rm7000/events mips/rm7000/unit_masks \
62         mips/rm9000/events mips/rm9000/unit_masks \
63         mips/sb1/events mips/sb1/unit_masks \
64         mips/r10000/events mips/r10000/unit_masks \
65         mips/r12000/events mips/r12000/unit_masks \
66         mips/vr5432/events mips/vr5432/unit_masks \
67         mips/vr5500/events mips/vr5500/unit_masks \
68         mips/loongson2/events mips/loongson2/unit_masks \
69         mips/1004K/events mips/1004K/unit_masks \
70         mips/74K/events mips/74K/unit_masks \
71         ppc/7450/events ppc/7450/unit_masks \
72         ppc/e500/events ppc/e500/unit_masks \
73         ppc/e500v2/events ppc/e500v2/unit_masks \
74         ppc/e500mc/events ppc/e500mc/unit_masks \
75         ppc/e6500/events ppc/e6500/unit_masks \
76         ppc/e300/events ppc/e300/unit_masks \
77         tile/tile64/events tile/tile64/unit_masks \
78         tile/tilepro/events tile/tilepro/unit_masks \
79         tile/tilegx/events tile/tilegx/unit_masks \
80         s390/z10/events s390/z10/unit_masks \
81         s390/z196/events s390/z196/unit_masks \
82         s390/zEC12/events s390/zEC12/unit_masks
83
84 install-data-local:
85         for i in ${event_files} ; do \
86                 dir=`dirname $$i` ; \
87                 mkdir -p $(DESTDIR)$(pkgdatadir)/$$dir ; \
88                 $(INSTALL_DATA) $(top_srcdir)/events/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \
89         done
90
91 uninstall-local:
92         for i in ${event_files} ; do \
93                 dir=`dirname $$i` ; \
94                 archdir=`dirname $$dir` ; \
95                 if test -f $(DESTDIR)$(pkgdatadir)/$$i ; then \
96                         rm $(DESTDIR)$(pkgdatadir)/$$i ; \
97                 fi;  \
98                 if test -d $(DESTDIR)$(pkgdatadir)/$$dir ; then \
99                         rmdir --ignore-fail-on-non-empty $(DESTDIR)$(pkgdatadir)/$$dir ; \
100                 fi; \
101                 if test $$archdir != "." -a -d $(DESTDIR)$(pkgdatadir)/$$archdir ; then \
102                         rmdir --ignore-fail-on-non-empty $(DESTDIR)$(pkgdatadir)/$$archdir ; \
103                 fi; \
104         done
105
106 EXTRA_DIST = $(event_files)