forked from LA-Xenomai/xenomai-la
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
78 lines (64 loc) · 1.48 KB
/
Makefile.am
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
ACLOCAL_AMFLAGS=-I config
SUBDIRS = \
doc \
lib \
config \
include \
scripts \
utils
if XENO_ENABLE_DEMO
SUBDIRS += \
demo
endif
if XENO_ENABLE_TESTSUITE
SUBDIRS += \
testsuite
endif
EXTRA_DIST = kernel debian
DIST_SUBDIRS = \
config \
demo \
doc \
include \
lib \
scripts \
testsuite \
utils
doc/%: FORCE
$(MAKE) -C doc/ $*
dist-hook:
rm -fr `find $(distdir) -name '.svn' -o -name CVS -o -name '.#*' \
-o -name '*~' -o -name autom4te.cache`
install-udev-rules:
if XENO_COBALT
if test -r $(DESTDIR)/$(sysconfdir)/udev/udev.rules ; then \
for f in $(srcdir)/kernel/cobalt/udev/*.rules ; do \
b=`basename $$f` ; \
grep -q Xenomai:`basename $$b .rules` $(DESTDIR)/$(sysconfdir)/udev/udev.rules || \
( echo ; cat $$f ) >> $(DESTDIR)/$(sysconfdir)/udev/udev.rules ; \
done ; \
else \
$(mkinstalldirs) $(DESTDIR)/$(sysconfdir)/udev/rules.d; \
for f in $(srcdir)/kernel/cobalt/udev/*.rules ; do \
$(INSTALL_DATA) $$f $(DESTDIR)/$(sysconfdir)/udev/rules.d/ ; \
done ; \
fi
endif
uninstall-udev-rules:
if XENO_COBALT
cd $(srcdir)/kernel/cobalt/udev && for f in *.rules; do \
rm -f $(DESTDIR)/$(sysconfdir)/udev/rules.d/$$f ; \
done
endif
# legacy alias
install-user: install
install-exec-local: install-udev-rules
uninstall-local: uninstall-udev-rules
uninstall-local:
if XENO_COBALT
cd $(srcdir)/kernel/cobalt/udev ; \
for f in *.rules ; do \
$(RM) $(DESTDIR)$(sysconfdir)/udev/rules.d/$$f ; \
done
endif
.PHONY: FORCE