@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)' \
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 \
echo -e "\n" \
rm -rf $$rpmbuilddir
# In the debs target, first make sure what's in the changelog reflects
-# the software version. Here's how we could dig the version out of the
-# autoconf version file directly:
-# lversion=$$(sed -ne 's/m4_define(\[LUSTRE_[A-Z][A-Z]*\],\[\([0-9][0-9]*\)\])$$/\1/p'
-# lustre/autoconf/lustre-version.ac | tr '\n' '.' | sed -e 's/.$//');
-#
-# However, one cannot really run "make debs" without having done a
-# configure first, so we could use the easier method of digging the
-# version out of the config.h file.
+# the software version.
debs: undef.h
- lversion=$$(sed -ne 's/^#define VERSION "\(.*\)"$$/\1/p' config.h); \
+ lversion=$$(echo @VERSION@ | tr '_' '-'); \
cversion=$$(sed -ne '1s/^lustre (\(.*\)-[0-9][0-9]*).*$$/\1/p' debian/changelog); \
if [ "$$lversion" != "$$cversion" ]; then \
echo -e "1i\nlustre ($$lversion-1) unstable; urgency=low\n\n * Automated changelog entry update\n\n -- Brian J. Murrell <brian@interlinx.bc.ca> $$(date -R)\n\n.\nwq" | ed debian/changelog; \