X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=7fe9b5052b49a7256e9124fe83969816f2a217ff;hb=95e6a6e5fcee851fffe38aef0b4f4b1764cb9119;hp=da4a2dc22235003f9617940022eabde929029b78;hpb=6a3754c3b785da56b6da222d9d8e86c3e2c2ab47;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)