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