Fix for mkdir rpm directories.
authorBrian Aker <brian@tangent.org>
Thu, 31 May 2012 03:56:17 +0000 (23:56 -0400)
committerBrian Aker <brian@tangent.org>
Thu, 31 May 2012 03:56:17 +0000 (23:56 -0400)
Makefile.am

index 61bee31780e92cc580ce66a7e449482ca83fb12f..127c071a17647d8bc95172fa084e42251e080950 100644 (file)
@@ -63,12 +63,18 @@ EXTRA_DIST+= ${man_MANS}
 fedora:
        @rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
        @rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
+       @mkdir -p ~/rpmbuild/SOURCES/
+       @mkdir -p ~/rpmbuild/RPMS/x86_64/
+       @mkdir -p ~/rpmbuild/SRPMS/
        @cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
        @rpmbuild -ba support/libmemcached.spec
        @cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
        @cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
 
 generic: support/libmemcached.spec
+       @mkdir -p ~/rpmbuild/SOURCES/
+       @mkdir -p ~/rpmbuild/RPMS/x86_64/
+       @mkdir -p ~/rpmbuild/SRPMS/
        @rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
        @rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
        @cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/