X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=autoMakefile.am;h=0054f7272e0c77469ab9a1504d1dad785a9f81f5;hp=1b0401381c5dcabd208a8678332756601df2deeb;hb=ce8ca7d3564439285a56982430f380354b697f68;hpb=f2d28899a2c3b5a427f4322623ba138887fe6adc diff --git a/autoMakefile.am b/autoMakefile.am index 1b04013..0054f72 100644 --- a/autoMakefile.am +++ b/autoMakefile.am @@ -72,7 +72,7 @@ if LINUX all-am: modules modules: undef.h ldiskfs-sources - $(MAKE) CC="$(CC)" -C $(LINUX_OBJ) \ + $(MAKE) LDFLAGS= 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)' \ $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \ @@ -95,16 +95,17 @@ EXTRA_DIST = @PACKAGE_TARNAME@.spec \ build/Makefile \ build/Rules.in \ config.h.in \ - undef.h \ lustre-dkms_pre-build.sh \ lustre-dkms_post-build.sh \ LUSTRE-VERSION-GEN \ - LUSTRE-VERSION-FILE + LUSTRE-VERSION-FILE \ + undef.h # 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 +EXTRA_DIST += rpm rpm-local: @(if test -z "$(RPMBUILD)"; then \ @@ -170,10 +171,10 @@ srpm: @PACKAGE_TARNAME@.spec dist Makefile rpmbuilddir=`mktemp -t -d rpmbuild-@PACKAGE@-$$USER-XXXXXXXX`; \ $(MAKE) $(AM_MAKEFLAGS) \ rpmbuilddir="$$rpmbuilddir" rpm-local || exit 1; \ + cp $(top_srcdir)/rpm/* $(top_srcdir); \ $(RPMBUILD) \ --define "_tmppath $$rpmbuilddir/TMP" \ --define "_topdir $$rpmbuilddir" \ - --define "build_src_rpm 1" \ --define "dist %{nil}" \ -ts $(distdir).tar.gz || exit 1; \ cp $$rpmbuilddir/SRPMS/$(distdir)-*.src.rpm $(top_srcdir) || exit 1; \ @@ -188,7 +189,7 @@ debs: undef.h 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; \ fi; \ rm -rf debs - dpkg-buildpackage -I.git -I\*.out[0-9]\* -I\*.swp || { \ + dpkg-buildpackage -us -uc -I.git -I\*.out[0-9]\* -I\*.swp || { \ rc=$${PIPESTATUS[0]}; \ [ $${rc} -gt 1 ] && exit $${rc}; \ exit 0; \