X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=autoMakefile.am;h=1b0401381c5dcabd208a8678332756601df2deeb;hb=5d9275e2784942266f2c9cd03f9ad2f17fba0af4;hp=0943370e94be97e8a17bd52df28ff41b75b2ac43;hpb=ee813dbaa2a2b86f4873c4c289f62a0243aa9809;p=fs%2Flustre-release.git diff --git a/autoMakefile.am b/autoMakefile.am index 0943370..1b04013 100644 --- a/autoMakefile.am +++ b/autoMakefile.am @@ -12,7 +12,7 @@ DIST_SUBDIRS := ldiskfs \ @SNMP_DIST_SUBDIR@ \ lnet \ lustre \ - config contrib + config AUTOMAKE_OPTIONS = foreign @@ -61,20 +61,17 @@ doxygen-%: build/doxyfile.% 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)' \ @@ -104,6 +101,11 @@ EXTRA_DIST = @PACKAGE_TARNAME@.spec \ 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" \ @@ -178,16 +180,9 @@ srpm: @PACKAGE_TARNAME@.spec dist Makefile 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 $$(date -R)\n\n.\nwq" | ed debian/changelog; \