1 AUTOMAKE_OPTIONS = foreign
3 #SUBDIRS := . build @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ lnet portals lustre
4 #DIST_SUBDIRS := build @SNMP_DIST_SUBDIR@ libsysio lnet portals lustre
5 SUBDIRS := . build @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ lnet lustre
6 DIST_SUBDIRS := build @SNMP_DIST_SUBDIR@ libsysio lnet lustre
8 EXTRA_DIST := config.h.in
10 # these empty rules are needed so that automake doesn't add its own
21 rm -f $(top_srcdir)/TAGS
22 ETAGSF=`etags --version | grep -iq exuberant && \
23 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
24 find $(top_srcdir) -name '*.[hc]' |grep -v linux-stage |xargs etags $$ETAGSF -a
26 rm -f $(top_srcdir)/tags
27 CTAGSF=`ctags --version | grep -iq exuberant && \
28 echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
29 find $(top_srcdir) -name '*.[hc]' |grep -v linux-stage |xargs ctags $$CTAGSF -a
33 $(MAKE) sources -C lnet
34 # $(MAKE) sources -C portals
35 $(MAKE) sources -C lustre
45 $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ) \
46 -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
47 -o scripts -o include/config/MARKER _sfdep_$(PWD) \
48 _FASTDEP_ALL_SUB_DIRS="$(PWD)"
53 modules: $(DEP) all-sources
54 $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ) \
55 -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
56 $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \
57 include/config/MARKER $@
63 find $(distdir) -name .deps | xargs rm -rf
64 find $(distdir) -name CVS | xargs rm -rf
66 build/lustre.spec: build/lustre.spec.in config.status
67 ./config.status build/lustre.spec
69 rpms: build/lustre.spec dist Makefile
70 rpmbuild -ta $(distdir).tar.gz