summaryrefslogtreecommitdiff
path: root/fdi/policy/10osvendor/Makefile.am
blob: 734eeadbee09307ce4582bea7866ecec4e7060c2 (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

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

dist_fdi_DATA = 			\
	10-keyboard-policy.fdi		\
	10-power-mgmt-policy.fdi	\
	10-toshiba-buttons.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_CPUFREQ
dist_fdi_DATA += 10-cpufreq.fdi
endif

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

if BUILD_N770
dist_fdi_DATA += 10-nokia770-backlight.fdi
endif

if BUILD_DELL
dist_fdi_DATA += 10-dell-laptop-brightness.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 *~