summaryrefslogtreecommitdiff
path: root/fdi/policy/10osvendor/Makefile.am
blob: d60d5b3bb9a7127bca123eb2b674874594f937bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

fdidir = $(datadir)/hal/fdi/policy/10osvendor

dist_fdi_DATA = 			\
	10-keyboard-policy.fdi		\
	10-power-mgmt-policy.fdi	\
	10-laptop-buttons.fdi		\
	10-rfkill-switch.fdi		\
	10-laptop-panel-mgmt-policy.fdi	\
	15-storage-luks.fdi		\
	20-storage-methods.fdi

if BUILD_MACBOOKPRO
dist_fdi_DATA += 10-macbookpro-utils.fdi
endif

if BUILD_MACBOOK
dist_fdi_DATA += 10-macbook-backlight.fdi
endif

if BUILD_CPUFREQ
dist_fdi_DATA += 10-cpufreq.fdi
endif

if BUILD_USBCSR
dist_fdi_DATA += 10-usbcsr-mice.fdi
endif

if BUILD_OMAP
dist_fdi_DATA += 10-omap-backlight.fdi
endif

if BUILD_DELL
dist_fdi_DATA += 10-dell-laptop-brightness.fdi
endif

if HAVE_ACLMGMT
dist_fdi_DATA += 20-acl-management.fdi
endif

check:
	for f in $(dist_fdi_DATA); do \
            echo -n "Validate XML in $$f : "; \
            xmllint --noout --dtdvalid $(top_srcdir)/fdi/fdi.dtd $(srcdir)/$$f 2> xmllint.error; \
            if test -s xmllint.error; \
              then \
                echo failed; \
                cat xmllint.error; \
                rm -f xmllint.error; \
                exit 1; \
            else \
                echo ok; \
                rm -f xmllint.error; \
            fi; \
        done;

clean-local :
	rm -f *~