X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2FautoMakefile.am.toplevel;h=2451dd312fc0d8dd3a2bbfdbd0f55c55edc99333;hp=7bb63370419a6d886fda54254f2efb4ab0f91de1;hb=5db8cc0de19278d4b84c72895c0e4178572f48c5;hpb=27b6961062f1cc0f70b57adab0765d7cb9bae221 diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index 7bb6337..2451dd3 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -1,5 +1,7 @@ +AUTOMAKE_OPTIONS = foreign + SUBDIRS := . build @LIBSYSIO_SUBDIR@ portals lustre -DIST_SUBDIRS := build @LIBSYSIO_SUBDIR@ portals lustre +DIST_SUBDIRS := build libsysio portals lustre EXTRA_DIST := config.h.in @@ -25,12 +27,13 @@ tags: find $(top_srcdir) -name '*.[hc]' | xargs ctags $$CTAGSF -a if MODULES -all-am: modules - all-sources: $(MAKE) sources -C portals $(MAKE) sources -C lustre +if LINUX +all-am: modules + if !LINUX25 DEP = dep dep: .depend @@ -42,13 +45,14 @@ dep: .depend _FASTDEP_ALL_SUB_DIRS="$(PWD)" CLEANFILES = .depend -endif +endif # !LINUX25 modules: $(DEP) all-sources $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ) \ -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \ $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \ include/config/MARKER $@ +endif # LINUX endif # MODULES @@ -56,5 +60,8 @@ dist-hook: find $(distdir) -name .deps | xargs rm -rf find $(distdir) -name CVS | xargs rm -rf -rpms: dist Makefile +build/lustre.spec: build/lustre.spec.in config.status + ./config.status build/lustre.spec + +rpms: build/lustre.spec dist Makefile rpmbuild -ta $(distdir).tar.gz