Whamcloud - gitweb
7bb63370419a6d886fda54254f2efb4ab0f91de1
[fs/lustre-release.git] / build / autoMakefile.am.toplevel
1 SUBDIRS := . build @LIBSYSIO_SUBDIR@ portals lustre
2 DIST_SUBDIRS := build @LIBSYSIO_SUBDIR@ portals lustre
3
4 EXTRA_DIST := config.h.in
5
6 # these empty rules are needed so that automake doesn't add its own
7 # recursive rules
8 etags-recursive:
9
10 ctags-recursive:
11
12 tags-recursive:
13
14 TAGS:
15
16 tags:
17         rm -f $(top_srcdir)/TAGS
18         ETAGSF=`etags --version | grep -iq exuberant && \
19                 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
20         find $(top_srcdir) -name '*.[hc]' | xargs etags $$ETAGSF -a
21
22         rm -f $(top_srcdir)/tags
23         CTAGSF=`ctags --version | grep -iq exuberant && \
24                 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
25         find $(top_srcdir) -name '*.[hc]' | xargs ctags $$CTAGSF -a
26
27 if MODULES
28 all-am: modules
29
30 all-sources:
31         $(MAKE) sources -C portals
32         $(MAKE) sources -C lustre
33
34 if !LINUX25
35 DEP = dep
36 dep: .depend
37
38 .depend: all-sources
39         $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ)                \
40         -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
41         -o scripts -o include/config/MARKER _sfdep_$(PWD)            \
42         _FASTDEP_ALL_SUB_DIRS="$(PWD)"
43
44 CLEANFILES = .depend
45 endif
46
47 modules: $(DEP) all-sources
48         $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ)                \
49         -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
50         $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \
51         include/config/MARKER $@
52
53 endif # MODULES
54
55 dist-hook:
56         find $(distdir) -name .deps | xargs rm -rf
57         find $(distdir) -name CVS | xargs rm -rf
58
59 rpms: dist Makefile
60         rpmbuild -ta $(distdir).tar.gz