@SNMP_DIST_SUBDIR@ \
lnet \
lustre \
- config contrib
+ config
AUTOMAKE_OPTIONS = foreign
doxygen $<
if MODULES
-.PHONY: ldiskfs-sources lustre-sources
+.PHONY: ldiskfs-sources
ldiskfs-sources:
if LDISKFS_ENABLED
$(MAKE) sources -C @LDISKFS_SUBDIR@ || exit $$?
endif
-lustre-sources:
- $(MAKE) sources -C lustre || exit $$?
-
if LINUX
all-am: modules
-modules: undef.h ldiskfs-sources lustre-sources
+modules: undef.h ldiskfs-sources
$(MAKE) CC="$(CC)" -C $(LINUX_OBJ) \
-f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
LINUXINCLUDE='-I$$(srctree)/arch/$$(SRCARCH)/include -Iarch/$$(SRCARCH)/include/generated -Iinclude $$(if $$(KBUILD_SRC),-Iinclude2 -I$$(srctree)/include) -I$$(srctree)/arch/$$(SRCARCH)/include/uapi -Iarch/$$(SRCARCH)/include/generated/uapi -I$$(srctree)/include/uapi -Iinclude/generated/uapi -include $(CONFIG_INCLUDE)' \
-name .svn -o \
-name .git -o \
-name .#* -exec rm -rf {} \;
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" distdir="$(distdir)" \
- module-dist-hook
EXTRA_DIST = @PACKAGE_TARNAME@.spec \
build/Makefile \
config.h.in \
undef.h \
lustre-dkms_pre-build.sh \
- lustre-dkms_post-build.sh
+ lustre-dkms_post-build.sh \
+ LUSTRE-VERSION-GEN \
+ LUSTRE-VERSION-FILE
+
+# contrib is a directory. Putting a directory in EXTRA_DIST
+# recursively includes the entire directory contents in the
+# distribution tarball (the tarball created with "make dist").
+EXTRA_DIST += contrib
rpm-local:
@(if test -z "$(RPMBUILD)"; then \
checkstack-clean:
rm -f ${CSTK} ${CSTKO}
-
-module-dist-hook:
- @if [ -d .git ]; then \
- perl lustre/scripts/version_tag.pl \
- --make_META > $(distdir)/META; \
- elif [ -f META ]; then \
- cp META $(distdir)/META; \
- else \
- echo -e "\n" \
- "*** I have no idea how to create a META file in $(distdir).\n"\
- "*** Please file a bug at https://jira.hpdd.intel.com/\n"; \
- exit 1; \
- fi