X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=7fe9b5052b49a7256e9124fe83969816f2a217ff;hb=ecd614bb73701b935dd68a8ca098a40fa0b419a1;hp=da4a2dc22235003f9617940022eabde929029b78;hpb=d6ab4a2a7c6fa3df143e9ef3c12f27dd5e962352;p=mkinitrd.git diff --git a/Makefile b/Makefile index da4a2dc..7fe9b50 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,8 @@ trees: sources srpm: sources mkdir -p SOURCES SRPMS (cd SOURCES; rpm2cpio ../$(SOURCE_RPM) | cpio -diu; \ - cp ../$(notdir $(SPECFILE)) . ; cp ../*.patch .;) + cp ../$(notdir $(SPECFILE)) . ; cp ../*.patch .; \ + for downloaded in $(SOURCEFILES) ; do cp ../$$downloaded . ; done ; ) ./rpmmacros.sh export HOME=$(shell pwd) ; rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE)