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