equal
deleted
inserted
replaced
33 # standard) as the (only) precondition to have the right to use EtherCAT |
33 # standard) as the (only) precondition to have the right to use EtherCAT |
34 # Technology, IP and trade marks. |
34 # Technology, IP and trade marks. |
35 # |
35 # |
36 #------------------------------------------------------------------------------ |
36 #------------------------------------------------------------------------------ |
37 |
37 |
38 SUBDIRS = master/ devices/ |
38 SUBDIRS = master/ devices/ script/ |
39 |
|
40 initdir = $(sysconfdir)/init.d |
|
41 sysdir = $(sysconfdir)/sysconfig |
|
42 |
39 |
43 include_HEADERS = include/ecdb.h include/ecrt.h |
40 include_HEADERS = include/ecdb.h include/ecrt.h |
44 noinst_SCRIPTS = script/lsec.pl script/ethercat.sh script/sysconfig |
|
45 |
41 |
46 MINI_FILES = \ |
42 MINI_FILES = \ |
47 examples/mini/Kbuild \ |
43 examples/mini/Kbuild \ |
48 examples/mini/Makefile.am \ |
44 examples/mini/Makefile.am \ |
49 examples/mini/Makefile.in \ |
45 examples/mini/Makefile.in \ |
64 examples/msr/msr_param.h \ |
60 examples/msr/msr_param.h \ |
65 examples/msr/msr_sample.c \ |
61 examples/msr/msr_sample.c \ |
66 examples/msr/msrserv.pl \ |
62 examples/msr/msrserv.pl \ |
67 examples/msr/msr_unload |
63 examples/msr/msr_unload |
68 |
64 |
69 EXTRA_DIST = $(noinst_SCRIPTS) documentation/ethercat_doc.pdf \ |
65 EXTRA_DIST = documentation/ethercat_doc.pdf \ |
70 $(MINI_FILES) $(RTAI_FILES) $(MSR_FILES) |
66 $(MINI_FILES) $(RTAI_FILES) $(MSR_FILES) |
71 |
67 |
72 mydist: |
68 mydist: |
73 @SVNREV=`svnversion $(srcdir)` && \ |
69 @SVNREV=`svnversion $(srcdir)` && \ |
74 $(MAKE) dist-bzip2 distdir=$(PACKAGE)-$(VERSION)-r$${SVNREV} |
70 $(MAKE) dist-bzip2 distdir=$(PACKAGE)-$(VERSION)-r$${SVNREV} |
77 if which svnversion >/dev/null 2>&1; then \ |
73 if which svnversion >/dev/null 2>&1; then \ |
78 svnversion $(srcdir) 2>/dev/null >$(distdir)/svnrevision; \ |
74 svnversion $(srcdir) 2>/dev/null >$(distdir)/svnrevision; \ |
79 fi |
75 fi |
80 |
76 |
81 install-data-local: |
77 install-data-local: |
82 $(mkinstalldirs) $(bindir) |
78 $(DEPMOD) -b "$(DESTDIR)" $(LINUX_KERNEL_VERSION) |
83 $(mkinstalldirs) $(initdir) |
|
84 $(mkinstalldirs) $(sysdir) |
|
85 $(INSTALL_SCRIPT) $(srcdir)/script/lsec.pl $(bindir)/lsec |
|
86 $(INSTALL_SCRIPT) $(srcdir)/script/ethercat.sh $(initdir)/ethercat |
|
87 $(INSTALL_DATA) $(srcdir)/script/sysconfig $(sysdir)/ethercat |
|
88 $(DEPMOD) $(LINUX_KERNEL_VERSION) |
|
89 |
|
90 uninstall-local: |
|
91 rm -rf $(LINUX_MODULES_DIR)/ethercat |
|
92 rm $(bindir)/lsec |
|
93 rm $(initdir)/ethercat |
|
94 rm $(sysdir)/ethercat |
|
95 |
79 |
96 doc: |
80 doc: |
97 doxygen Doxyfile |
81 doxygen Doxyfile |
98 |
82 |
99 cleandoc: |
83 cleandoc: |