1 # This file is included by each package's toplevel autoMakefile[.am],
2 # which must define SUBDIRS as a minimum.
4 AUTOMAKE_OPTIONS = foreign
6 # these empty rules are needed so that automake doesn't add its own
19 $(RM) $(top_srcdir)/TAGS
20 ETAGSF=`etags --version | grep -iq exuberant && \
21 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
22 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs etags $$ETAGSF -a
25 $(RM) $(top_srcdir)/tags
26 CTAGSF=`ctags --version | grep -iq exuberant && \
27 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
28 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs ctags $$CTAGSF -a
33 $(RM) $(top_srcdir)/cscope*.out $(top_srcdir)/cscope.files
34 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' > cscope.files
40 all-sources: $(EXTRA_SOURCES)
41 for dir in $(SOURCES_SUBDIRS) ; do \
42 $(MAKE) sources -C $$dir || exit $$? ; \
53 $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ) \
54 -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
55 -o scripts -o include/config/MARKER _sfdep_$(PWD) \
56 _FASTDEP_ALL_SUB_DIRS="$(PWD)"
61 modules: $(DEP) all-sources
62 $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ) \
63 -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
64 LINUXINCLUDE='$(EXTRA_LNET_INCLUDE) -I$$(srctree)/arch/$$(SRCARCH)/include -Iinclude $$(if $$(KBUILD_SRC),-Iinclude2 -I$$(srctree)/include) -include include/linux/autoconf.h' \
65 $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \
66 include/config/MARKER $@
72 $(RM) $(distdir)/ldiskfs/*.spec
73 $(RM) $(distdir)/lustre-iokit/*.spec
74 find $(distdir) -name .deps -o \
78 -name .#* | xargs rm -rf
79 $(MAKE) $(AM_MAKEFLAGS) \
80 top_distdir="$(top_distdir)" distdir="$(distdir)" \
83 EXTRA_DIST = @PACKAGE_TARNAME@.spec \
84 build/Makefile build/autoMakefile.am.toplevel build/lbuild \
85 build/linux-merge-config.awk build/linux-merge-modules.awk \
86 build/linux-rhconfig.h build/lmake build/Rules.in \
87 build/lustre-kernel-2.4.spec.in build/suse-functions.sh \
88 build/suse-post.sh build/suse-postun.sh \
89 build/suse-trigger-script.sh.in build/README.kernel-source \
90 build/sles8-post.sh build/sles8-postun.sh build/sles8-pre.sh \
91 build/sles8-update_INITRD_MODULES.sh \
92 build/sles8-update_rcfile_setting.sh build/update_oldconfig \
93 build/autoconf/lustre-build-linux.m4 \
94 build/autoconf/lustre-build.m4
96 rpms-real: @PACKAGE_TARNAME@.spec dist Makefile
97 rpmbuild -ta $(distdir).tar.gz
99 srpm-real: @PACKAGE_TARNAME@.spec dist Makefile
100 rpmbuild -ts $(distdir).tar.gz
103 for subdir in $(RPM_SUBDIRS) ; do \
104 echo "Making rpms in $$subdir"; \
105 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) rpms); \
106 echo "Finished rpms in $$subdir"; \
108 $(MAKE) $(AM_MAKEFLAGS) rpms-real
111 for subdir in $(RPM_SUBDIRS) ; do \
112 echo "Making srpm in $$subdir"; \
113 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) srpm); \
114 echo "Finished srpms in $$subdir"; \
116 $(MAKE) $(AM_MAKEFLAGS) srpm-real