[rtems-buildsys commit] Rework make.mk.in.

Ralf Corsepius ralf at rtems.org
Tue Jun 26 09:52:28 UTC 2012


Module:    rtems-buildsys
Branch:    master
Commit:    254d881e3ac8ae9eee153d1c36a46de28a2add17
Changeset: http://git.rtems.org/rtems-buildsys/commit/?id=254d881e3ac8ae9eee153d1c36a46de28a2add17

Author:    Ralf Corsépius <ralf.corsepius at rtems.org>
Date:      Tue Jun 26 10:13:35 2012 +0200

Rework make.mk.in.

---

 rtems-mock/configure                               |   20 ++++++++++----------
 rtems-mock/configure.ac                            |    2 +-
 rtems-mock/make/cygwin/4.10/.rpms/SRPMS/make.mk    |    6 +++---
 rtems-mock/make/cygwin/4.10/.rpms/i686/make.mk     |    6 +++---
 rtems-mock/make/cygwin/4.11/.rpms/SRPMS/make.mk    |    6 +++---
 rtems-mock/make/cygwin/4.11/.rpms/i686/make.mk     |    6 +++---
 rtems-mock/make/cygwin/4.8/.rpms/SRPMS/make.mk     |    6 +++---
 rtems-mock/make/cygwin/4.8/.rpms/i686/make.mk      |    6 +++---
 rtems-mock/make/cygwin/4.9/.rpms/SRPMS/make.mk     |    6 +++---
 rtems-mock/make/cygwin/4.9/.rpms/i686/make.mk      |    6 +++---
 rtems-mock/make/linux/4.10/centos/5/SRPMS/make.mk  |    6 +++---
 rtems-mock/make/linux/4.10/centos/5/i386/make.mk   |   10 +++++-----
 rtems-mock/make/linux/4.10/centos/5/x86_64/make.mk |   10 +++++-----
 rtems-mock/make/linux/4.10/centos/6/SRPMS/make.mk  |    6 +++---
 rtems-mock/make/linux/4.10/centos/6/i386/make.mk   |   10 +++++-----
 rtems-mock/make/linux/4.10/centos/6/x86_64/make.mk |   10 +++++-----
 rtems-mock/make/linux/4.10/fedora/16/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.10/fedora/16/i386/make.mk  |   10 +++++-----
 .../make/linux/4.10/fedora/16/x86_64/make.mk       |   10 +++++-----
 rtems-mock/make/linux/4.10/fedora/17/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.10/fedora/17/i386/make.mk  |   10 +++++-----
 .../make/linux/4.10/fedora/17/x86_64/make.mk       |   10 +++++-----
 rtems-mock/make/linux/4.10/suse/11.4/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.10/suse/11.4/i586/make.mk  |    6 +++---
 .../make/linux/4.10/suse/11.4/x86_64/make.mk       |    6 +++---
 rtems-mock/make/linux/4.10/suse/12.1/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.10/suse/12.1/i586/make.mk  |    6 +++---
 .../make/linux/4.10/suse/12.1/x86_64/make.mk       |    6 +++---
 rtems-mock/make/linux/4.11/centos/5/SRPMS/make.mk  |    6 +++---
 rtems-mock/make/linux/4.11/centos/5/i386/make.mk   |   10 +++++-----
 rtems-mock/make/linux/4.11/centos/5/x86_64/make.mk |   10 +++++-----
 rtems-mock/make/linux/4.11/centos/6/SRPMS/make.mk  |    6 +++---
 rtems-mock/make/linux/4.11/centos/6/i386/make.mk   |   10 +++++-----
 rtems-mock/make/linux/4.11/centos/6/x86_64/make.mk |   10 +++++-----
 rtems-mock/make/linux/4.11/fedora/16/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.11/fedora/16/i386/make.mk  |   10 +++++-----
 .../make/linux/4.11/fedora/16/x86_64/make.mk       |   10 +++++-----
 rtems-mock/make/linux/4.11/fedora/17/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.11/fedora/17/i386/make.mk  |   10 +++++-----
 .../make/linux/4.11/fedora/17/x86_64/make.mk       |   10 +++++-----
 rtems-mock/make/linux/4.11/suse/11.4/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.11/suse/11.4/i586/make.mk  |    6 +++---
 .../make/linux/4.11/suse/11.4/x86_64/make.mk       |    6 +++---
 rtems-mock/make/linux/4.11/suse/12.1/SRPMS/make.mk |    6 +++---
 rtems-mock/make/linux/4.11/suse/12.1/i586/make.mk  |    6 +++---
 .../make/linux/4.11/suse/12.1/x86_64/make.mk       |    6 +++---
 rtems-mock/make/linux/4.8/centos/5/SRPMS/make.mk   |    6 +++---
 rtems-mock/make/linux/4.8/centos/5/i386/make.mk    |   10 +++++-----
 rtems-mock/make/linux/4.8/centos/5/x86_64/make.mk  |   10 +++++-----
 rtems-mock/make/linux/4.9/centos/5/SRPMS/make.mk   |    6 +++---
 rtems-mock/make/linux/4.9/centos/5/i386/make.mk    |   10 +++++-----
 rtems-mock/make/linux/4.9/centos/5/x86_64/make.mk  |   10 +++++-----
 rtems-mock/make/linux/4.9/centos/6/SRPMS/make.mk   |    6 +++---
 rtems-mock/make/linux/4.9/centos/6/i386/make.mk    |   10 +++++-----
 rtems-mock/make/linux/4.9/centos/6/x86_64/make.mk  |   10 +++++-----
 .../linux/infrastructure/centos/5/SRPMS/make.mk    |    6 +++---
 .../linux/infrastructure/centos/5/i386/make.mk     |   10 +++++-----
 .../linux/infrastructure/centos/5/x86_64/make.mk   |   10 +++++-----
 .../linux/infrastructure/centos/6/SRPMS/make.mk    |    6 +++---
 .../linux/infrastructure/centos/6/i386/make.mk     |   10 +++++-----
 .../linux/infrastructure/centos/6/x86_64/make.mk   |   10 +++++-----
 .../linux/infrastructure/fedora/16/SRPMS/make.mk   |    6 +++---
 .../linux/infrastructure/fedora/16/i386/make.mk    |   10 +++++-----
 .../linux/infrastructure/fedora/16/x86_64/make.mk  |   10 +++++-----
 .../linux/infrastructure/fedora/17/SRPMS/make.mk   |    6 +++---
 .../linux/infrastructure/fedora/17/i386/make.mk    |   10 +++++-----
 .../linux/infrastructure/fedora/17/x86_64/make.mk  |   10 +++++-----
 .../linux/infrastructure/suse/11.4/SRPMS/make.mk   |    6 +++---
 .../linux/infrastructure/suse/11.4/i586/make.mk    |    6 +++---
 .../linux/infrastructure/suse/11.4/x86_64/make.mk  |    6 +++---
 .../linux/infrastructure/suse/12.1/SRPMS/make.mk   |    6 +++---
 .../linux/infrastructure/suse/12.1/i586/make.mk    |    6 +++---
 .../linux/infrastructure/suse/12.1/x86_64/make.mk  |    6 +++---
 rtems-mock/make/make.mk.in                         |   10 +++++-----
 rtems-mock/make/mingw32/4.10/.rpms/SRPMS/make.mk   |    6 +++---
 rtems-mock/make/mingw32/4.10/.rpms/i686/make.mk    |    6 +++---
 rtems-mock/make/mingw32/4.11/.rpms/SRPMS/make.mk   |    6 +++---
 rtems-mock/make/mingw32/4.11/.rpms/i686/make.mk    |    6 +++---
 rtems-mock/make/mingw32/4.8/.rpms/SRPMS/make.mk    |    6 +++---
 rtems-mock/make/mingw32/4.8/.rpms/i686/make.mk     |    6 +++---
 rtems-mock/make/mingw32/4.9/.rpms/SRPMS/make.mk    |    6 +++---
 rtems-mock/make/mingw32/4.9/.rpms/i686/make.mk     |    6 +++---
 rtems-mock/make/mingw64/4.11/.rpms/SRPMS/make.mk   |    6 +++---
 rtems-mock/make/mingw64/4.11/.rpms/i686/make.mk    |    6 +++---
 rtems-mock/make/mingw64/4.11/.rpms/x86_64/make.mk  |    6 +++---
 85 files changed, 322 insertions(+), 322 deletions(-)

diff --git a/rtems-mock/configure b/rtems-mock/configure
index 6b5597f..acf683b 100755
--- a/rtems-mock/configure
+++ b/rtems-mock/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for rtems-mock 1.20120625.1.
+# Generated by GNU Autoconf 2.69 for rtems-mock 1.20120626.0.
 #
 # Report bugs to <ralf.corsepius at rtems.org>.
 #
@@ -579,8 +579,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='rtems-mock'
 PACKAGE_TARNAME='rtems-mock'
-PACKAGE_VERSION='1.20120625.1'
-PACKAGE_STRING='rtems-mock 1.20120625.1'
+PACKAGE_VERSION='1.20120626.0'
+PACKAGE_STRING='rtems-mock 1.20120626.0'
 PACKAGE_BUGREPORT='ralf.corsepius at rtems.org'
 PACKAGE_URL=''
 
@@ -1213,7 +1213,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures rtems-mock 1.20120625.1 to adapt to many kinds of systems.
+\`configure' configures rtems-mock 1.20120626.0 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1279,7 +1279,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of rtems-mock 1.20120625.1:";;
+     short | recursive ) echo "Configuration of rtems-mock 1.20120626.0:";;
    esac
   cat <<\_ACEOF
 
@@ -1357,7 +1357,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-rtems-mock configure 1.20120625.1
+rtems-mock configure 1.20120626.0
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1374,7 +1374,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by rtems-mock $as_me 1.20120625.1, which was
+It was created by rtems-mock $as_me 1.20120626.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2189,7 +2189,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='rtems-mock'
- VERSION='1.20120625.1'
+ VERSION='1.20120626.0'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -3232,7 +3232,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by rtems-mock $as_me 1.20120625.1, which was
+This file was extended by rtems-mock $as_me 1.20120626.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -3285,7 +3285,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-rtems-mock config.status 1.20120625.1
+rtems-mock config.status 1.20120626.0
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff --git a/rtems-mock/configure.ac b/rtems-mock/configure.ac
index 7118d05..36ab065 100644
--- a/rtems-mock/configure.ac
+++ b/rtems-mock/configure.ac
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.68)
-AC_INIT([rtems-mock],[1.20120625.1],[ralf.corsepius at rtems.org],[rtems-mock])
+AC_INIT([rtems-mock],[1.20120626.0],[ralf.corsepius at rtems.org],[rtems-mock])
 AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2 dist-xz tar-pax 1.11.3 foreign])
 AM_MAINTAINER_MODE
 
diff --git a/rtems-mock/make/cygwin/4.10/.rpms/SRPMS/make.mk b/rtems-mock/make/cygwin/4.10/.rpms/SRPMS/make.mk
index 6fdba0e..cff1882 100644
--- a/rtems-mock/make/cygwin/4.10/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/cygwin/4.10/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.10/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/cygwin/4.10/.rpms/SRPMS
 
 $(FTPHOME)/cygwin/4.10/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.10/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/cygwin/4.10/.rpms/SRPMS \
-	$(FTPHOME)/cygwin/4.10/.rpms/SRPMS
+	$(CACHEDIR)/cygwin/4.10/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/cygwin/4.10/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.10/.rpms/SRPMS \
 	$(FTPHOME)/cygwin/4.10/.rpms/SRPMS
 REPOS += $(FTPHOME)/cygwin/4.10/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.10/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.10/.rpms/SRPMS
 DIRS += $(FTPHOME)/cygwin/obsolete/4.10/.rpms/SRPMS
 
-$(FTPHOME)/cygwin/obsolete/4.10/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.10/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.10/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.10/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.10/.rpms/SRPMS
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.10/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/cygwin/4.10/.rpms/i686/make.mk b/rtems-mock/make/cygwin/4.10/.rpms/i686/make.mk
index be277bf..7de6fb3 100644
--- a/rtems-mock/make/cygwin/4.10/.rpms/i686/make.mk
+++ b/rtems-mock/make/cygwin/4.10/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.10/.rpms/i686:
 DIRS += $(CACHEDIR)/cygwin/4.10/.rpms/i686
 
 $(FTPHOME)/cygwin/4.10/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.10/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/cygwin/4.10/.rpms/i686 \
-	$(FTPHOME)/cygwin/4.10/.rpms/i686
+	$(CACHEDIR)/cygwin/4.10/.rpms/i686
+	mkdir -p $(FTPHOME)/cygwin/4.10/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.10/.rpms/i686 \
 	$(FTPHOME)/cygwin/4.10/.rpms/i686
 REPOS += $(FTPHOME)/cygwin/4.10/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.10/.rpms/i686:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.10/.rpms/i686
 DIRS += $(FTPHOME)/cygwin/obsolete/4.10/.rpms/i686
 
-$(FTPHOME)/cygwin/obsolete/4.10/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.10/.rpms/i686/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.10/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.10/.rpms/i686/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.10/.rpms/i686
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.10/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/cygwin/4.11/.rpms/SRPMS/make.mk b/rtems-mock/make/cygwin/4.11/.rpms/SRPMS/make.mk
index eff4318..e1e4c94 100644
--- a/rtems-mock/make/cygwin/4.11/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/cygwin/4.11/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.11/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/cygwin/4.11/.rpms/SRPMS
 
 $(FTPHOME)/cygwin/4.11/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.11/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/cygwin/4.11/.rpms/SRPMS \
-	$(FTPHOME)/cygwin/4.11/.rpms/SRPMS
+	$(CACHEDIR)/cygwin/4.11/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/cygwin/4.11/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.11/.rpms/SRPMS \
 	$(FTPHOME)/cygwin/4.11/.rpms/SRPMS
 REPOS += $(FTPHOME)/cygwin/4.11/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.11/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.11/.rpms/SRPMS
 DIRS += $(FTPHOME)/cygwin/obsolete/4.11/.rpms/SRPMS
 
-$(FTPHOME)/cygwin/obsolete/4.11/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.11/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.11/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.11/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.11/.rpms/SRPMS
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.11/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/cygwin/4.11/.rpms/i686/make.mk b/rtems-mock/make/cygwin/4.11/.rpms/i686/make.mk
index 85de481..d9d85e3 100644
--- a/rtems-mock/make/cygwin/4.11/.rpms/i686/make.mk
+++ b/rtems-mock/make/cygwin/4.11/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.11/.rpms/i686:
 DIRS += $(CACHEDIR)/cygwin/4.11/.rpms/i686
 
 $(FTPHOME)/cygwin/4.11/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.11/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/cygwin/4.11/.rpms/i686 \
-	$(FTPHOME)/cygwin/4.11/.rpms/i686
+	$(CACHEDIR)/cygwin/4.11/.rpms/i686
+	mkdir -p $(FTPHOME)/cygwin/4.11/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.11/.rpms/i686 \
 	$(FTPHOME)/cygwin/4.11/.rpms/i686
 REPOS += $(FTPHOME)/cygwin/4.11/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.11/.rpms/i686:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.11/.rpms/i686
 DIRS += $(FTPHOME)/cygwin/obsolete/4.11/.rpms/i686
 
-$(FTPHOME)/cygwin/obsolete/4.11/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.11/.rpms/i686/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.11/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.11/.rpms/i686/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.11/.rpms/i686
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.11/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/cygwin/4.8/.rpms/SRPMS/make.mk b/rtems-mock/make/cygwin/4.8/.rpms/SRPMS/make.mk
index 8a7943f..e291a89 100644
--- a/rtems-mock/make/cygwin/4.8/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/cygwin/4.8/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.8/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/cygwin/4.8/.rpms/SRPMS
 
 $(FTPHOME)/cygwin/4.8/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.8/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/cygwin/4.8/.rpms/SRPMS \
-	$(FTPHOME)/cygwin/4.8/.rpms/SRPMS
+	$(CACHEDIR)/cygwin/4.8/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/cygwin/4.8/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.8/.rpms/SRPMS \
 	$(FTPHOME)/cygwin/4.8/.rpms/SRPMS
 REPOS += $(FTPHOME)/cygwin/4.8/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.8/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.8/.rpms/SRPMS
 DIRS += $(FTPHOME)/cygwin/obsolete/4.8/.rpms/SRPMS
 
-$(FTPHOME)/cygwin/obsolete/4.8/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.8/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.8/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.8/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.8/.rpms/SRPMS
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.8/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/cygwin/4.8/.rpms/i686/make.mk b/rtems-mock/make/cygwin/4.8/.rpms/i686/make.mk
index a3ab6ed..88174d1 100644
--- a/rtems-mock/make/cygwin/4.8/.rpms/i686/make.mk
+++ b/rtems-mock/make/cygwin/4.8/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.8/.rpms/i686:
 DIRS += $(CACHEDIR)/cygwin/4.8/.rpms/i686
 
 $(FTPHOME)/cygwin/4.8/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.8/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/cygwin/4.8/.rpms/i686 \
-	$(FTPHOME)/cygwin/4.8/.rpms/i686
+	$(CACHEDIR)/cygwin/4.8/.rpms/i686
+	mkdir -p $(FTPHOME)/cygwin/4.8/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.8/.rpms/i686 \
 	$(FTPHOME)/cygwin/4.8/.rpms/i686
 REPOS += $(FTPHOME)/cygwin/4.8/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.8/.rpms/i686:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.8/.rpms/i686
 DIRS += $(FTPHOME)/cygwin/obsolete/4.8/.rpms/i686
 
-$(FTPHOME)/cygwin/obsolete/4.8/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.8/.rpms/i686/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.8/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.8/.rpms/i686/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.8/.rpms/i686
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.8/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/cygwin/4.9/.rpms/SRPMS/make.mk b/rtems-mock/make/cygwin/4.9/.rpms/SRPMS/make.mk
index e0e2e0c..496b755 100644
--- a/rtems-mock/make/cygwin/4.9/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/cygwin/4.9/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.9/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/cygwin/4.9/.rpms/SRPMS
 
 $(FTPHOME)/cygwin/4.9/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.9/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/cygwin/4.9/.rpms/SRPMS \
-	$(FTPHOME)/cygwin/4.9/.rpms/SRPMS
+	$(CACHEDIR)/cygwin/4.9/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/cygwin/4.9/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.9/.rpms/SRPMS \
 	$(FTPHOME)/cygwin/4.9/.rpms/SRPMS
 REPOS += $(FTPHOME)/cygwin/4.9/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.9/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.9/.rpms/SRPMS
 DIRS += $(FTPHOME)/cygwin/obsolete/4.9/.rpms/SRPMS
 
-$(FTPHOME)/cygwin/obsolete/4.9/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.9/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.9/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/cygwin/4.9/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.9/.rpms/SRPMS
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.9/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/cygwin/4.9/.rpms/i686/make.mk b/rtems-mock/make/cygwin/4.9/.rpms/i686/make.mk
index 55f1c28..1caa1fe 100644
--- a/rtems-mock/make/cygwin/4.9/.rpms/i686/make.mk
+++ b/rtems-mock/make/cygwin/4.9/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/cygwin/4.9/.rpms/i686:
 DIRS += $(CACHEDIR)/cygwin/4.9/.rpms/i686
 
 $(FTPHOME)/cygwin/4.9/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/cygwin/4.9/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/cygwin/4.9/.rpms/i686 \
-	$(FTPHOME)/cygwin/4.9/.rpms/i686
+	$(CACHEDIR)/cygwin/4.9/.rpms/i686
+	mkdir -p $(FTPHOME)/cygwin/4.9/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/cygwin/4.9/.rpms/i686 \
 	$(FTPHOME)/cygwin/4.9/.rpms/i686
 REPOS += $(FTPHOME)/cygwin/4.9/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/cygwin/obsolete/4.9/.rpms/i686:
 	mkdir -p $(FTPHOME)/cygwin/obsolete/4.9/.rpms/i686
 DIRS += $(FTPHOME)/cygwin/obsolete/4.9/.rpms/i686
 
-$(FTPHOME)/cygwin/obsolete/4.9/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.9/.rpms/i686/*.rpm) \
+$(FTPHOME)/cygwin/obsolete/4.9/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/cygwin/4.9/.rpms/i686/*rpm) \
 	$(FTPHOME)/cygwin/obsolete/4.9/.rpms/i686
 	@(cd $(FTPHOME)/cygwin && $(REPOCLEAN) 4.9/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/centos/5/SRPMS/make.mk b/rtems-mock/make/linux/4.10/centos/5/SRPMS/make.mk
index a135598..a7b2929 100644
--- a/rtems-mock/make/linux/4.10/centos/5/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.10/centos/5/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/centos/5/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.10/centos/5/SRPMS
 
 $(FTPHOME)/linux/4.10/centos/5/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/5/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/5/SRPMS \
-	$(FTPHOME)/linux/4.10/centos/5/SRPMS
+	$(CACHEDIR)/linux/4.10/centos/5/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.10/centos/5/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/centos/5/SRPMS \
 	$(FTPHOME)/linux/4.10/centos/5/SRPMS
 REPOS += $(FTPHOME)/linux/4.10/centos/5/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/centos/5/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/centos/5/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.10/centos/5/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.10/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/5/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/5/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/centos/5/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/centos/5/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/centos/5/i386/make.mk b/rtems-mock/make/linux/4.10/centos/5/i386/make.mk
index d54dc73..c49386a 100644
--- a/rtems-mock/make/linux/4.10/centos/5/i386/make.mk
+++ b/rtems-mock/make/linux/4.10/centos/5/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.10/centos/5/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.10/centos/5/i386/debug
 
 $(FTPHOME)/linux/4.10/centos/5/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/5/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/5/i386 \
-	$(FTPHOME)/linux/4.10/centos/5/i386
+	$(CACHEDIR)/linux/4.10/centos/5/i386
+	mkdir -p $(FTPHOME)/linux/4.10/centos/5/i386
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/centos/5/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.10/centos/5/i386
 REPOS += $(FTPHOME)/linux/4.10/centos/5/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/centos/5/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/5/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/5/i386/debug \
-	$(FTPHOME)/linux/4.10/centos/5/i386/debug
+	$(CACHEDIR)/linux/4.10/centos/5/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.10/centos/5/i386/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/centos/5/i386/debug $(FTPHOME)/linux/4.10/centos/5/i386/debug
 REPOS += $(FTPHOME)/linux/4.10/centos/5/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.10/centos/5/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/centos/5/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/centos/5/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.10/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/5/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/5/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/centos/5/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.10/centos/5/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/centos/5/i386) | \
diff --git a/rtems-mock/make/linux/4.10/centos/5/x86_64/make.mk b/rtems-mock/make/linux/4.10/centos/5/x86_64/make.mk
index c390ab3..9b043a3 100644
--- a/rtems-mock/make/linux/4.10/centos/5/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.10/centos/5/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.10/centos/5/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.10/centos/5/x86_64/debug
 
 $(FTPHOME)/linux/4.10/centos/5/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/5/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/5/x86_64 \
-	$(FTPHOME)/linux/4.10/centos/5/x86_64
+	$(CACHEDIR)/linux/4.10/centos/5/x86_64
+	mkdir -p $(FTPHOME)/linux/4.10/centos/5/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/centos/5/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.10/centos/5/x86_64
 REPOS += $(FTPHOME)/linux/4.10/centos/5/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/centos/5/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/5/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/5/x86_64/debug \
-	$(FTPHOME)/linux/4.10/centos/5/x86_64/debug
+	$(CACHEDIR)/linux/4.10/centos/5/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.10/centos/5/x86_64/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/centos/5/x86_64/debug $(FTPHOME)/linux/4.10/centos/5/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.10/centos/5/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.10/centos/5/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/centos/5/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/centos/5/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.10/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/5/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/5/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/centos/5/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.10/centos/5/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/centos/5/x86_64) | \
diff --git a/rtems-mock/make/linux/4.10/centos/6/SRPMS/make.mk b/rtems-mock/make/linux/4.10/centos/6/SRPMS/make.mk
index 57d7115..ef3ead0 100644
--- a/rtems-mock/make/linux/4.10/centos/6/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.10/centos/6/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/centos/6/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.10/centos/6/SRPMS
 
 $(FTPHOME)/linux/4.10/centos/6/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/6/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/6/SRPMS \
-	$(FTPHOME)/linux/4.10/centos/6/SRPMS
+	$(CACHEDIR)/linux/4.10/centos/6/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.10/centos/6/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/centos/6/SRPMS \
 	$(FTPHOME)/linux/4.10/centos/6/SRPMS
 REPOS += $(FTPHOME)/linux/4.10/centos/6/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/centos/6/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/centos/6/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.10/centos/6/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.10/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/6/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/6/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/centos/6/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/centos/6/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/centos/6/i386/make.mk b/rtems-mock/make/linux/4.10/centos/6/i386/make.mk
index e48eb70..f2fcf24 100644
--- a/rtems-mock/make/linux/4.10/centos/6/i386/make.mk
+++ b/rtems-mock/make/linux/4.10/centos/6/i386/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.10/centos/6/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.10/centos/6/i386/debug
 
 $(FTPHOME)/linux/4.10/centos/6/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/6/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/6/i386 \
-	$(FTPHOME)/linux/4.10/centos/6/i386
+	$(CACHEDIR)/linux/4.10/centos/6/i386
+	mkdir -p $(FTPHOME)/linux/4.10/centos/6/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/centos/6/i386 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.10/centos/6/i386 \
 	$(FTPHOME)/linux/4.10/centos/6/i386
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.10/centos/6/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/l
 REPOS += $(FTPHOME)/linux/4.10/centos/6/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/centos/6/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/6/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/6/i386/debug \
-	$(FTPHOME)/linux/4.10/centos/6/i386/debug
+	$(CACHEDIR)/linux/4.10/centos/6/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.10/centos/6/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/centos/6/i386/debug $(FTPHOME)/linux/4.10/centos/6/i386/debug
 REPOS += $(FTPHOME)/linux/4.10/centos/6/i386/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.10/centos/6/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/centos/6/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/centos/6/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.10/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/6/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/6/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/centos/6/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.10/centos/6/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/centos/6/i386) | \
diff --git a/rtems-mock/make/linux/4.10/centos/6/x86_64/make.mk b/rtems-mock/make/linux/4.10/centos/6/x86_64/make.mk
index 026ce8c..ccdae87 100644
--- a/rtems-mock/make/linux/4.10/centos/6/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.10/centos/6/x86_64/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.10/centos/6/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.10/centos/6/x86_64/debug
 
 $(FTPHOME)/linux/4.10/centos/6/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/6/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/6/x86_64 \
-	$(FTPHOME)/linux/4.10/centos/6/x86_64
+	$(CACHEDIR)/linux/4.10/centos/6/x86_64
+	mkdir -p $(FTPHOME)/linux/4.10/centos/6/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/centos/6/x86_64 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64 \
 	$(FTPHOME)/linux/4.10/centos/6/x86_64
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.10/centos/6/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)
 REPOS += $(FTPHOME)/linux/4.10/centos/6/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/centos/6/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/centos/6/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/centos/6/x86_64/debug \
-	$(FTPHOME)/linux/4.10/centos/6/x86_64/debug
+	$(CACHEDIR)/linux/4.10/centos/6/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.10/centos/6/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/centos/6/x86_64/debug $(FTPHOME)/linux/4.10/centos/6/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.10/centos/6/x86_64/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/6/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/centos/6/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.10/centos/6/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/centos/6/x86_64) | \
diff --git a/rtems-mock/make/linux/4.10/fedora/16/SRPMS/make.mk b/rtems-mock/make/linux/4.10/fedora/16/SRPMS/make.mk
index 2b44f6c..6f9e00f 100644
--- a/rtems-mock/make/linux/4.10/fedora/16/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.10/fedora/16/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/fedora/16/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.10/fedora/16/SRPMS
 
 $(FTPHOME)/linux/4.10/fedora/16/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/16/SRPMS \
-	$(FTPHOME)/linux/4.10/fedora/16/SRPMS
+	$(CACHEDIR)/linux/4.10/fedora/16/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/16/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/16/SRPMS \
 	$(FTPHOME)/linux/4.10/fedora/16/SRPMS
 REPOS += $(FTPHOME)/linux/4.10/fedora/16/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/fedora/16/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/fedora/16/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.10/fedora/16/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.10/fedora/16/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/fedora/16/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/16/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/fedora/16/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/fedora/16/i386/make.mk b/rtems-mock/make/linux/4.10/fedora/16/i386/make.mk
index f6e4f0c..2b7538c 100644
--- a/rtems-mock/make/linux/4.10/fedora/16/i386/make.mk
+++ b/rtems-mock/make/linux/4.10/fedora/16/i386/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.10/fedora/16/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.10/fedora/16/i386/debug
 
 $(FTPHOME)/linux/4.10/fedora/16/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/16/i386 \
-	$(FTPHOME)/linux/4.10/fedora/16/i386
+	$(CACHEDIR)/linux/4.10/fedora/16/i386
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/16/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/16/i386 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.10/fedora/16/i386 \
 	$(FTPHOME)/linux/4.10/fedora/16/i386
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.10/fedora/16/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/
 REPOS += $(FTPHOME)/linux/4.10/fedora/16/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/fedora/16/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/16/i386/debug \
-	$(FTPHOME)/linux/4.10/fedora/16/i386/debug
+	$(CACHEDIR)/linux/4.10/fedora/16/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/16/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/16/i386/debug $(FTPHOME)/linux/4.10/fedora/16/i386/debug
 REPOS += $(FTPHOME)/linux/4.10/fedora/16/i386/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.10/fedora/16/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/fedora/16/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/fedora/16/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.10/fedora/16/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/fedora/16/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/16/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/16/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/fedora/16/i386) | \
diff --git a/rtems-mock/make/linux/4.10/fedora/16/x86_64/make.mk b/rtems-mock/make/linux/4.10/fedora/16/x86_64/make.mk
index 9aa7862..2aca2e1 100644
--- a/rtems-mock/make/linux/4.10/fedora/16/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.10/fedora/16/x86_64/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.10/fedora/16/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.10/fedora/16/x86_64/debug
 
 $(FTPHOME)/linux/4.10/fedora/16/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/16/x86_64 \
-	$(FTPHOME)/linux/4.10/fedora/16/x86_64
+	$(CACHEDIR)/linux/4.10/fedora/16/x86_64
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/16/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/16/x86_64 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64 \
 	$(FTPHOME)/linux/4.10/fedora/16/x86_64
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.10/fedora/16/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME
 REPOS += $(FTPHOME)/linux/4.10/fedora/16/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/fedora/16/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/16/x86_64/debug \
-	$(FTPHOME)/linux/4.10/fedora/16/x86_64/debug
+	$(CACHEDIR)/linux/4.10/fedora/16/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/16/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/16/x86_64/debug $(FTPHOME)/linux/4.10/fedora/16/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.10/fedora/16/x86_64/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/16/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/16/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/fedora/16/x86_64) | \
diff --git a/rtems-mock/make/linux/4.10/fedora/17/SRPMS/make.mk b/rtems-mock/make/linux/4.10/fedora/17/SRPMS/make.mk
index 61e348e..a3b3846 100644
--- a/rtems-mock/make/linux/4.10/fedora/17/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.10/fedora/17/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/fedora/17/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.10/fedora/17/SRPMS
 
 $(FTPHOME)/linux/4.10/fedora/17/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/17/SRPMS \
-	$(FTPHOME)/linux/4.10/fedora/17/SRPMS
+	$(CACHEDIR)/linux/4.10/fedora/17/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/17/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/17/SRPMS \
 	$(FTPHOME)/linux/4.10/fedora/17/SRPMS
 REPOS += $(FTPHOME)/linux/4.10/fedora/17/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/fedora/17/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/fedora/17/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.10/fedora/17/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.10/fedora/17/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/fedora/17/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/17/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/fedora/17/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/fedora/17/i386/make.mk b/rtems-mock/make/linux/4.10/fedora/17/i386/make.mk
index ef14025..f16d8cb 100644
--- a/rtems-mock/make/linux/4.10/fedora/17/i386/make.mk
+++ b/rtems-mock/make/linux/4.10/fedora/17/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.10/fedora/17/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.10/fedora/17/i386/debug
 
 $(FTPHOME)/linux/4.10/fedora/17/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/17/i386 \
-	$(FTPHOME)/linux/4.10/fedora/17/i386
+	$(CACHEDIR)/linux/4.10/fedora/17/i386
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/17/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/17/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.10/fedora/17/i386
 REPOS += $(FTPHOME)/linux/4.10/fedora/17/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/fedora/17/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/17/i386/debug \
-	$(FTPHOME)/linux/4.10/fedora/17/i386/debug
+	$(CACHEDIR)/linux/4.10/fedora/17/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/17/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/17/i386/debug $(FTPHOME)/linux/4.10/fedora/17/i386/debug
 REPOS += $(FTPHOME)/linux/4.10/fedora/17/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.10/fedora/17/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/fedora/17/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/fedora/17/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.10/fedora/17/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/fedora/17/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/17/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/17/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/fedora/17/i386) | \
diff --git a/rtems-mock/make/linux/4.10/fedora/17/x86_64/make.mk b/rtems-mock/make/linux/4.10/fedora/17/x86_64/make.mk
index 82ffa58..9fa8ad8 100644
--- a/rtems-mock/make/linux/4.10/fedora/17/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.10/fedora/17/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.10/fedora/17/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.10/fedora/17/x86_64/debug
 
 $(FTPHOME)/linux/4.10/fedora/17/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/17/x86_64 \
-	$(FTPHOME)/linux/4.10/fedora/17/x86_64
+	$(CACHEDIR)/linux/4.10/fedora/17/x86_64
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/17/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/17/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.10/fedora/17/x86_64
 REPOS += $(FTPHOME)/linux/4.10/fedora/17/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.10/fedora/17/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.10/fedora/17/x86_64/debug \
-	$(FTPHOME)/linux/4.10/fedora/17/x86_64/debug
+	$(CACHEDIR)/linux/4.10/fedora/17/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.10/fedora/17/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.10/fedora/17/x86_64/debug $(FTPHOME)/linux/4.10/fedora/17/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.10/fedora/17/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.10/fedora/17/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/fedora/17/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.10/fedora/17/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.10/fedora/17/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/fedora/17/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/fedora/17/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/17/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.10/fedora/17/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/fedora/17/x86_64) | \
diff --git a/rtems-mock/make/linux/4.10/suse/11.4/SRPMS/make.mk b/rtems-mock/make/linux/4.10/suse/11.4/SRPMS/make.mk
index de7fe15..4551e45 100644
--- a/rtems-mock/make/linux/4.10/suse/11.4/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.10/suse/11.4/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/suse/11.4/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.10/suse/11.4/SRPMS
 
 $(FTPHOME)/linux/4.10/suse/11.4/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.10/suse/11.4/SRPMS \
-	$(FTPHOME)/linux/4.10/suse/11.4/SRPMS
+	$(CACHEDIR)/linux/4.10/suse/11.4/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.10/suse/11.4/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/suse/11.4/SRPMS \
 	$(FTPHOME)/linux/4.10/suse/11.4/SRPMS
 REPOS += $(FTPHOME)/linux/4.10/suse/11.4/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/suse/11.4/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/suse/11.4/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.10/suse/11.4/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.10/suse/11.4/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/suse/11.4/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/suse/11.4/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/suse/11.4/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/suse/11.4/i586/make.mk b/rtems-mock/make/linux/4.10/suse/11.4/i586/make.mk
index cb29b54..3c0734b 100644
--- a/rtems-mock/make/linux/4.10/suse/11.4/i586/make.mk
+++ b/rtems-mock/make/linux/4.10/suse/11.4/i586/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/suse/11.4/i586:
 DIRS += $(CACHEDIR)/linux/4.10/suse/11.4/i586
 
 $(FTPHOME)/linux/4.10/suse/11.4/i586/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/i586/*.rpm) \
-	$(CACHEDIR)/linux/4.10/suse/11.4/i586 \
-	$(FTPHOME)/linux/4.10/suse/11.4/i586
+	$(CACHEDIR)/linux/4.10/suse/11.4/i586
+	mkdir -p $(FTPHOME)/linux/4.10/suse/11.4/i586
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/suse/11.4/i586 \
 	$(FTPHOME)/linux/4.10/suse/11.4/i586
 REPOS += $(FTPHOME)/linux/4.10/suse/11.4/i586/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/suse/11.4/i586:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/suse/11.4/i586
 DIRS += $(FTPHOME)/linux/obsolete/4.10/suse/11.4/i586
 
-$(FTPHOME)/linux/obsolete/4.10/suse/11.4/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/i586/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/suse/11.4/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/i586/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/suse/11.4/i586
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/suse/11.4/i586) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/suse/11.4/x86_64/make.mk b/rtems-mock/make/linux/4.10/suse/11.4/x86_64/make.mk
index 3888fe6..96b60a5 100644
--- a/rtems-mock/make/linux/4.10/suse/11.4/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.10/suse/11.4/x86_64/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/suse/11.4/x86_64:
 DIRS += $(CACHEDIR)/linux/4.10/suse/11.4/x86_64
 
 $(FTPHOME)/linux/4.10/suse/11.4/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.10/suse/11.4/x86_64 \
-	$(FTPHOME)/linux/4.10/suse/11.4/x86_64
+	$(CACHEDIR)/linux/4.10/suse/11.4/x86_64
+	mkdir -p $(FTPHOME)/linux/4.10/suse/11.4/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/suse/11.4/x86_64 \
 	$(FTPHOME)/linux/4.10/suse/11.4/x86_64
 REPOS += $(FTPHOME)/linux/4.10/suse/11.4/x86_64/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/suse/11.4/x86_64:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/suse/11.4/x86_64
 DIRS += $(FTPHOME)/linux/obsolete/4.10/suse/11.4/x86_64
 
-$(FTPHOME)/linux/obsolete/4.10/suse/11.4/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/suse/11.4/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/11.4/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/suse/11.4/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/suse/11.4/x86_64) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/suse/12.1/SRPMS/make.mk b/rtems-mock/make/linux/4.10/suse/12.1/SRPMS/make.mk
index c010ef4..579f186 100644
--- a/rtems-mock/make/linux/4.10/suse/12.1/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.10/suse/12.1/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/suse/12.1/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.10/suse/12.1/SRPMS
 
 $(FTPHOME)/linux/4.10/suse/12.1/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.10/suse/12.1/SRPMS \
-	$(FTPHOME)/linux/4.10/suse/12.1/SRPMS
+	$(CACHEDIR)/linux/4.10/suse/12.1/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.10/suse/12.1/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/suse/12.1/SRPMS \
 	$(FTPHOME)/linux/4.10/suse/12.1/SRPMS
 REPOS += $(FTPHOME)/linux/4.10/suse/12.1/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/suse/12.1/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/suse/12.1/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.10/suse/12.1/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.10/suse/12.1/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/suse/12.1/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/suse/12.1/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/suse/12.1/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/suse/12.1/i586/make.mk b/rtems-mock/make/linux/4.10/suse/12.1/i586/make.mk
index 86bf4fa..2e82a36 100644
--- a/rtems-mock/make/linux/4.10/suse/12.1/i586/make.mk
+++ b/rtems-mock/make/linux/4.10/suse/12.1/i586/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/suse/12.1/i586:
 DIRS += $(CACHEDIR)/linux/4.10/suse/12.1/i586
 
 $(FTPHOME)/linux/4.10/suse/12.1/i586/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/i586/*.rpm) \
-	$(CACHEDIR)/linux/4.10/suse/12.1/i586 \
-	$(FTPHOME)/linux/4.10/suse/12.1/i586
+	$(CACHEDIR)/linux/4.10/suse/12.1/i586
+	mkdir -p $(FTPHOME)/linux/4.10/suse/12.1/i586
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/suse/12.1/i586 \
 	$(FTPHOME)/linux/4.10/suse/12.1/i586
 REPOS += $(FTPHOME)/linux/4.10/suse/12.1/i586/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/suse/12.1/i586:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/suse/12.1/i586
 DIRS += $(FTPHOME)/linux/obsolete/4.10/suse/12.1/i586
 
-$(FTPHOME)/linux/obsolete/4.10/suse/12.1/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/i586/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/suse/12.1/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/i586/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/suse/12.1/i586
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/suse/12.1/i586) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.10/suse/12.1/x86_64/make.mk b/rtems-mock/make/linux/4.10/suse/12.1/x86_64/make.mk
index 4365adb..668e616 100644
--- a/rtems-mock/make/linux/4.10/suse/12.1/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.10/suse/12.1/x86_64/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.10/suse/12.1/x86_64:
 DIRS += $(CACHEDIR)/linux/4.10/suse/12.1/x86_64
 
 $(FTPHOME)/linux/4.10/suse/12.1/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.10/suse/12.1/x86_64 \
-	$(FTPHOME)/linux/4.10/suse/12.1/x86_64
+	$(CACHEDIR)/linux/4.10/suse/12.1/x86_64
+	mkdir -p $(FTPHOME)/linux/4.10/suse/12.1/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.10/suse/12.1/x86_64 \
 	$(FTPHOME)/linux/4.10/suse/12.1/x86_64
 REPOS += $(FTPHOME)/linux/4.10/suse/12.1/x86_64/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.10/suse/12.1/x86_64:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.10/suse/12.1/x86_64
 DIRS += $(FTPHOME)/linux/obsolete/4.10/suse/12.1/x86_64
 
-$(FTPHOME)/linux/obsolete/4.10/suse/12.1/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.10/suse/12.1/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.10/suse/12.1/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.10/suse/12.1/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.10/suse/12.1/x86_64) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/centos/5/SRPMS/make.mk b/rtems-mock/make/linux/4.11/centos/5/SRPMS/make.mk
index 21fbb41..cb12b90 100644
--- a/rtems-mock/make/linux/4.11/centos/5/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.11/centos/5/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/centos/5/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.11/centos/5/SRPMS
 
 $(FTPHOME)/linux/4.11/centos/5/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/5/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/5/SRPMS \
-	$(FTPHOME)/linux/4.11/centos/5/SRPMS
+	$(CACHEDIR)/linux/4.11/centos/5/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.11/centos/5/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/centos/5/SRPMS \
 	$(FTPHOME)/linux/4.11/centos/5/SRPMS
 REPOS += $(FTPHOME)/linux/4.11/centos/5/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/centos/5/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/centos/5/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.11/centos/5/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.11/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/5/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/5/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/centos/5/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/centos/5/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/centos/5/i386/make.mk b/rtems-mock/make/linux/4.11/centos/5/i386/make.mk
index ac303af..ee11cf2 100644
--- a/rtems-mock/make/linux/4.11/centos/5/i386/make.mk
+++ b/rtems-mock/make/linux/4.11/centos/5/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.11/centos/5/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.11/centos/5/i386/debug
 
 $(FTPHOME)/linux/4.11/centos/5/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/5/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/5/i386 \
-	$(FTPHOME)/linux/4.11/centos/5/i386
+	$(CACHEDIR)/linux/4.11/centos/5/i386
+	mkdir -p $(FTPHOME)/linux/4.11/centos/5/i386
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/centos/5/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.11/centos/5/i386
 REPOS += $(FTPHOME)/linux/4.11/centos/5/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/centos/5/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/5/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/5/i386/debug \
-	$(FTPHOME)/linux/4.11/centos/5/i386/debug
+	$(CACHEDIR)/linux/4.11/centos/5/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.11/centos/5/i386/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/centos/5/i386/debug $(FTPHOME)/linux/4.11/centos/5/i386/debug
 REPOS += $(FTPHOME)/linux/4.11/centos/5/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.11/centos/5/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/centos/5/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/centos/5/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.11/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/5/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/5/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/centos/5/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.11/centos/5/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/centos/5/i386) | \
diff --git a/rtems-mock/make/linux/4.11/centos/5/x86_64/make.mk b/rtems-mock/make/linux/4.11/centos/5/x86_64/make.mk
index 4200051..6f0c260 100644
--- a/rtems-mock/make/linux/4.11/centos/5/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.11/centos/5/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.11/centos/5/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.11/centos/5/x86_64/debug
 
 $(FTPHOME)/linux/4.11/centos/5/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/5/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/5/x86_64 \
-	$(FTPHOME)/linux/4.11/centos/5/x86_64
+	$(CACHEDIR)/linux/4.11/centos/5/x86_64
+	mkdir -p $(FTPHOME)/linux/4.11/centos/5/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/centos/5/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.11/centos/5/x86_64
 REPOS += $(FTPHOME)/linux/4.11/centos/5/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/centos/5/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/5/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/5/x86_64/debug \
-	$(FTPHOME)/linux/4.11/centos/5/x86_64/debug
+	$(CACHEDIR)/linux/4.11/centos/5/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.11/centos/5/x86_64/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/centos/5/x86_64/debug $(FTPHOME)/linux/4.11/centos/5/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.11/centos/5/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.11/centos/5/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/centos/5/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/centos/5/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.11/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/5/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/5/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/centos/5/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.11/centos/5/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/centos/5/x86_64) | \
diff --git a/rtems-mock/make/linux/4.11/centos/6/SRPMS/make.mk b/rtems-mock/make/linux/4.11/centos/6/SRPMS/make.mk
index c06b499..3cfb1bb 100644
--- a/rtems-mock/make/linux/4.11/centos/6/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.11/centos/6/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/centos/6/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.11/centos/6/SRPMS
 
 $(FTPHOME)/linux/4.11/centos/6/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/6/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/6/SRPMS \
-	$(FTPHOME)/linux/4.11/centos/6/SRPMS
+	$(CACHEDIR)/linux/4.11/centos/6/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.11/centos/6/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/centos/6/SRPMS \
 	$(FTPHOME)/linux/4.11/centos/6/SRPMS
 REPOS += $(FTPHOME)/linux/4.11/centos/6/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/centos/6/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/centos/6/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.11/centos/6/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.11/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/6/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/6/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/centos/6/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/centos/6/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/centos/6/i386/make.mk b/rtems-mock/make/linux/4.11/centos/6/i386/make.mk
index f31398c..778674a 100644
--- a/rtems-mock/make/linux/4.11/centos/6/i386/make.mk
+++ b/rtems-mock/make/linux/4.11/centos/6/i386/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.11/centos/6/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.11/centos/6/i386/debug
 
 $(FTPHOME)/linux/4.11/centos/6/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/6/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/6/i386 \
-	$(FTPHOME)/linux/4.11/centos/6/i386
+	$(CACHEDIR)/linux/4.11/centos/6/i386
+	mkdir -p $(FTPHOME)/linux/4.11/centos/6/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/centos/6/i386 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.11/centos/6/i386 \
 	$(FTPHOME)/linux/4.11/centos/6/i386
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.11/centos/6/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/l
 REPOS += $(FTPHOME)/linux/4.11/centos/6/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/centos/6/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/6/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/6/i386/debug \
-	$(FTPHOME)/linux/4.11/centos/6/i386/debug
+	$(CACHEDIR)/linux/4.11/centos/6/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.11/centos/6/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/centos/6/i386/debug $(FTPHOME)/linux/4.11/centos/6/i386/debug
 REPOS += $(FTPHOME)/linux/4.11/centos/6/i386/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.11/centos/6/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/centos/6/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/centos/6/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.11/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/6/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/6/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/centos/6/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.11/centos/6/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/centos/6/i386) | \
diff --git a/rtems-mock/make/linux/4.11/centos/6/x86_64/make.mk b/rtems-mock/make/linux/4.11/centos/6/x86_64/make.mk
index 047b1f8..210fecb 100644
--- a/rtems-mock/make/linux/4.11/centos/6/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.11/centos/6/x86_64/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.11/centos/6/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.11/centos/6/x86_64/debug
 
 $(FTPHOME)/linux/4.11/centos/6/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/6/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/6/x86_64 \
-	$(FTPHOME)/linux/4.11/centos/6/x86_64
+	$(CACHEDIR)/linux/4.11/centos/6/x86_64
+	mkdir -p $(FTPHOME)/linux/4.11/centos/6/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/centos/6/x86_64 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64 \
 	$(FTPHOME)/linux/4.11/centos/6/x86_64
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.11/centos/6/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)
 REPOS += $(FTPHOME)/linux/4.11/centos/6/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/centos/6/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/centos/6/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/centos/6/x86_64/debug \
-	$(FTPHOME)/linux/4.11/centos/6/x86_64/debug
+	$(CACHEDIR)/linux/4.11/centos/6/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.11/centos/6/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/centos/6/x86_64/debug $(FTPHOME)/linux/4.11/centos/6/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.11/centos/6/x86_64/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/6/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/centos/6/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.11/centos/6/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/centos/6/x86_64) | \
diff --git a/rtems-mock/make/linux/4.11/fedora/16/SRPMS/make.mk b/rtems-mock/make/linux/4.11/fedora/16/SRPMS/make.mk
index e8dbb2f..1094e03 100644
--- a/rtems-mock/make/linux/4.11/fedora/16/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.11/fedora/16/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/fedora/16/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.11/fedora/16/SRPMS
 
 $(FTPHOME)/linux/4.11/fedora/16/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/16/SRPMS \
-	$(FTPHOME)/linux/4.11/fedora/16/SRPMS
+	$(CACHEDIR)/linux/4.11/fedora/16/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/16/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/16/SRPMS \
 	$(FTPHOME)/linux/4.11/fedora/16/SRPMS
 REPOS += $(FTPHOME)/linux/4.11/fedora/16/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/fedora/16/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/fedora/16/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.11/fedora/16/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.11/fedora/16/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/fedora/16/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/16/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/fedora/16/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/fedora/16/i386/make.mk b/rtems-mock/make/linux/4.11/fedora/16/i386/make.mk
index 3276515..c5d3905 100644
--- a/rtems-mock/make/linux/4.11/fedora/16/i386/make.mk
+++ b/rtems-mock/make/linux/4.11/fedora/16/i386/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.11/fedora/16/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.11/fedora/16/i386/debug
 
 $(FTPHOME)/linux/4.11/fedora/16/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/16/i386 \
-	$(FTPHOME)/linux/4.11/fedora/16/i386
+	$(CACHEDIR)/linux/4.11/fedora/16/i386
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/16/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/16/i386 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.11/fedora/16/i386 \
 	$(FTPHOME)/linux/4.11/fedora/16/i386
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.11/fedora/16/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/
 REPOS += $(FTPHOME)/linux/4.11/fedora/16/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/fedora/16/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/16/i386/debug \
-	$(FTPHOME)/linux/4.11/fedora/16/i386/debug
+	$(CACHEDIR)/linux/4.11/fedora/16/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/16/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/16/i386/debug $(FTPHOME)/linux/4.11/fedora/16/i386/debug
 REPOS += $(FTPHOME)/linux/4.11/fedora/16/i386/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.11/fedora/16/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/fedora/16/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/fedora/16/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.11/fedora/16/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/fedora/16/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/16/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/16/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/fedora/16/i386) | \
diff --git a/rtems-mock/make/linux/4.11/fedora/16/x86_64/make.mk b/rtems-mock/make/linux/4.11/fedora/16/x86_64/make.mk
index 39ba1ad..c076fd9 100644
--- a/rtems-mock/make/linux/4.11/fedora/16/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.11/fedora/16/x86_64/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.11/fedora/16/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.11/fedora/16/x86_64/debug
 
 $(FTPHOME)/linux/4.11/fedora/16/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/16/x86_64 \
-	$(FTPHOME)/linux/4.11/fedora/16/x86_64
+	$(CACHEDIR)/linux/4.11/fedora/16/x86_64
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/16/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/16/x86_64 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64 \
 	$(FTPHOME)/linux/4.11/fedora/16/x86_64
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.11/fedora/16/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME
 REPOS += $(FTPHOME)/linux/4.11/fedora/16/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/fedora/16/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/16/x86_64/debug \
-	$(FTPHOME)/linux/4.11/fedora/16/x86_64/debug
+	$(CACHEDIR)/linux/4.11/fedora/16/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/16/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/16/x86_64/debug $(FTPHOME)/linux/4.11/fedora/16/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.11/fedora/16/x86_64/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/16/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/16/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/fedora/16/x86_64) | \
diff --git a/rtems-mock/make/linux/4.11/fedora/17/SRPMS/make.mk b/rtems-mock/make/linux/4.11/fedora/17/SRPMS/make.mk
index 19d8549..7f28d3e 100644
--- a/rtems-mock/make/linux/4.11/fedora/17/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.11/fedora/17/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/fedora/17/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.11/fedora/17/SRPMS
 
 $(FTPHOME)/linux/4.11/fedora/17/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/17/SRPMS \
-	$(FTPHOME)/linux/4.11/fedora/17/SRPMS
+	$(CACHEDIR)/linux/4.11/fedora/17/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/17/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/17/SRPMS \
 	$(FTPHOME)/linux/4.11/fedora/17/SRPMS
 REPOS += $(FTPHOME)/linux/4.11/fedora/17/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/fedora/17/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/fedora/17/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.11/fedora/17/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.11/fedora/17/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/fedora/17/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/17/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/fedora/17/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/fedora/17/i386/make.mk b/rtems-mock/make/linux/4.11/fedora/17/i386/make.mk
index b83d7d0..0971bf5 100644
--- a/rtems-mock/make/linux/4.11/fedora/17/i386/make.mk
+++ b/rtems-mock/make/linux/4.11/fedora/17/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.11/fedora/17/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.11/fedora/17/i386/debug
 
 $(FTPHOME)/linux/4.11/fedora/17/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/17/i386 \
-	$(FTPHOME)/linux/4.11/fedora/17/i386
+	$(CACHEDIR)/linux/4.11/fedora/17/i386
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/17/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/17/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.11/fedora/17/i386
 REPOS += $(FTPHOME)/linux/4.11/fedora/17/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/fedora/17/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/17/i386/debug \
-	$(FTPHOME)/linux/4.11/fedora/17/i386/debug
+	$(CACHEDIR)/linux/4.11/fedora/17/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/17/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/17/i386/debug $(FTPHOME)/linux/4.11/fedora/17/i386/debug
 REPOS += $(FTPHOME)/linux/4.11/fedora/17/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.11/fedora/17/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/fedora/17/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/fedora/17/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.11/fedora/17/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/fedora/17/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/17/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/17/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/fedora/17/i386) | \
diff --git a/rtems-mock/make/linux/4.11/fedora/17/x86_64/make.mk b/rtems-mock/make/linux/4.11/fedora/17/x86_64/make.mk
index 144bbc2..b3d7b6f 100644
--- a/rtems-mock/make/linux/4.11/fedora/17/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.11/fedora/17/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.11/fedora/17/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.11/fedora/17/x86_64/debug
 
 $(FTPHOME)/linux/4.11/fedora/17/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/17/x86_64 \
-	$(FTPHOME)/linux/4.11/fedora/17/x86_64
+	$(CACHEDIR)/linux/4.11/fedora/17/x86_64
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/17/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/17/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.11/fedora/17/x86_64
 REPOS += $(FTPHOME)/linux/4.11/fedora/17/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.11/fedora/17/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.11/fedora/17/x86_64/debug \
-	$(FTPHOME)/linux/4.11/fedora/17/x86_64/debug
+	$(CACHEDIR)/linux/4.11/fedora/17/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.11/fedora/17/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.11/fedora/17/x86_64/debug $(FTPHOME)/linux/4.11/fedora/17/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.11/fedora/17/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.11/fedora/17/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/fedora/17/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.11/fedora/17/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.11/fedora/17/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/fedora/17/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/fedora/17/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/17/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.11/fedora/17/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/fedora/17/x86_64) | \
diff --git a/rtems-mock/make/linux/4.11/suse/11.4/SRPMS/make.mk b/rtems-mock/make/linux/4.11/suse/11.4/SRPMS/make.mk
index 3f99631..0d8613b 100644
--- a/rtems-mock/make/linux/4.11/suse/11.4/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.11/suse/11.4/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/suse/11.4/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.11/suse/11.4/SRPMS
 
 $(FTPHOME)/linux/4.11/suse/11.4/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.11/suse/11.4/SRPMS \
-	$(FTPHOME)/linux/4.11/suse/11.4/SRPMS
+	$(CACHEDIR)/linux/4.11/suse/11.4/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.11/suse/11.4/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/suse/11.4/SRPMS \
 	$(FTPHOME)/linux/4.11/suse/11.4/SRPMS
 REPOS += $(FTPHOME)/linux/4.11/suse/11.4/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/suse/11.4/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/suse/11.4/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.11/suse/11.4/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.11/suse/11.4/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/suse/11.4/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/suse/11.4/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/suse/11.4/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/suse/11.4/i586/make.mk b/rtems-mock/make/linux/4.11/suse/11.4/i586/make.mk
index 58997b7..6579a18 100644
--- a/rtems-mock/make/linux/4.11/suse/11.4/i586/make.mk
+++ b/rtems-mock/make/linux/4.11/suse/11.4/i586/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/suse/11.4/i586:
 DIRS += $(CACHEDIR)/linux/4.11/suse/11.4/i586
 
 $(FTPHOME)/linux/4.11/suse/11.4/i586/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/i586/*.rpm) \
-	$(CACHEDIR)/linux/4.11/suse/11.4/i586 \
-	$(FTPHOME)/linux/4.11/suse/11.4/i586
+	$(CACHEDIR)/linux/4.11/suse/11.4/i586
+	mkdir -p $(FTPHOME)/linux/4.11/suse/11.4/i586
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/suse/11.4/i586 \
 	$(FTPHOME)/linux/4.11/suse/11.4/i586
 REPOS += $(FTPHOME)/linux/4.11/suse/11.4/i586/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/suse/11.4/i586:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/suse/11.4/i586
 DIRS += $(FTPHOME)/linux/obsolete/4.11/suse/11.4/i586
 
-$(FTPHOME)/linux/obsolete/4.11/suse/11.4/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/i586/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/suse/11.4/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/i586/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/suse/11.4/i586
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/suse/11.4/i586) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/suse/11.4/x86_64/make.mk b/rtems-mock/make/linux/4.11/suse/11.4/x86_64/make.mk
index cf592ad..1b83a98 100644
--- a/rtems-mock/make/linux/4.11/suse/11.4/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.11/suse/11.4/x86_64/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/suse/11.4/x86_64:
 DIRS += $(CACHEDIR)/linux/4.11/suse/11.4/x86_64
 
 $(FTPHOME)/linux/4.11/suse/11.4/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.11/suse/11.4/x86_64 \
-	$(FTPHOME)/linux/4.11/suse/11.4/x86_64
+	$(CACHEDIR)/linux/4.11/suse/11.4/x86_64
+	mkdir -p $(FTPHOME)/linux/4.11/suse/11.4/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/suse/11.4/x86_64 \
 	$(FTPHOME)/linux/4.11/suse/11.4/x86_64
 REPOS += $(FTPHOME)/linux/4.11/suse/11.4/x86_64/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/suse/11.4/x86_64:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/suse/11.4/x86_64
 DIRS += $(FTPHOME)/linux/obsolete/4.11/suse/11.4/x86_64
 
-$(FTPHOME)/linux/obsolete/4.11/suse/11.4/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/suse/11.4/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/11.4/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/suse/11.4/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/suse/11.4/x86_64) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/suse/12.1/SRPMS/make.mk b/rtems-mock/make/linux/4.11/suse/12.1/SRPMS/make.mk
index 0ee5e07..dc0f94e 100644
--- a/rtems-mock/make/linux/4.11/suse/12.1/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.11/suse/12.1/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/suse/12.1/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.11/suse/12.1/SRPMS
 
 $(FTPHOME)/linux/4.11/suse/12.1/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.11/suse/12.1/SRPMS \
-	$(FTPHOME)/linux/4.11/suse/12.1/SRPMS
+	$(CACHEDIR)/linux/4.11/suse/12.1/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.11/suse/12.1/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/suse/12.1/SRPMS \
 	$(FTPHOME)/linux/4.11/suse/12.1/SRPMS
 REPOS += $(FTPHOME)/linux/4.11/suse/12.1/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/suse/12.1/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/suse/12.1/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.11/suse/12.1/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.11/suse/12.1/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/suse/12.1/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/suse/12.1/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/suse/12.1/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/suse/12.1/i586/make.mk b/rtems-mock/make/linux/4.11/suse/12.1/i586/make.mk
index e332a0b..be62a1f 100644
--- a/rtems-mock/make/linux/4.11/suse/12.1/i586/make.mk
+++ b/rtems-mock/make/linux/4.11/suse/12.1/i586/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/suse/12.1/i586:
 DIRS += $(CACHEDIR)/linux/4.11/suse/12.1/i586
 
 $(FTPHOME)/linux/4.11/suse/12.1/i586/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/i586/*.rpm) \
-	$(CACHEDIR)/linux/4.11/suse/12.1/i586 \
-	$(FTPHOME)/linux/4.11/suse/12.1/i586
+	$(CACHEDIR)/linux/4.11/suse/12.1/i586
+	mkdir -p $(FTPHOME)/linux/4.11/suse/12.1/i586
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/suse/12.1/i586 \
 	$(FTPHOME)/linux/4.11/suse/12.1/i586
 REPOS += $(FTPHOME)/linux/4.11/suse/12.1/i586/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/suse/12.1/i586:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/suse/12.1/i586
 DIRS += $(FTPHOME)/linux/obsolete/4.11/suse/12.1/i586
 
-$(FTPHOME)/linux/obsolete/4.11/suse/12.1/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/i586/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/suse/12.1/i586/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/i586/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/suse/12.1/i586
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/suse/12.1/i586) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.11/suse/12.1/x86_64/make.mk b/rtems-mock/make/linux/4.11/suse/12.1/x86_64/make.mk
index b238af1..c319f4c 100644
--- a/rtems-mock/make/linux/4.11/suse/12.1/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.11/suse/12.1/x86_64/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.11/suse/12.1/x86_64:
 DIRS += $(CACHEDIR)/linux/4.11/suse/12.1/x86_64
 
 $(FTPHOME)/linux/4.11/suse/12.1/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.11/suse/12.1/x86_64 \
-	$(FTPHOME)/linux/4.11/suse/12.1/x86_64
+	$(CACHEDIR)/linux/4.11/suse/12.1/x86_64
+	mkdir -p $(FTPHOME)/linux/4.11/suse/12.1/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.11/suse/12.1/x86_64 \
 	$(FTPHOME)/linux/4.11/suse/12.1/x86_64
 REPOS += $(FTPHOME)/linux/4.11/suse/12.1/x86_64/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.11/suse/12.1/x86_64:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.11/suse/12.1/x86_64
 DIRS += $(FTPHOME)/linux/obsolete/4.11/suse/12.1/x86_64
 
-$(FTPHOME)/linux/obsolete/4.11/suse/12.1/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.11/suse/12.1/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.11/suse/12.1/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.11/suse/12.1/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.11/suse/12.1/x86_64) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.8/centos/5/SRPMS/make.mk b/rtems-mock/make/linux/4.8/centos/5/SRPMS/make.mk
index e3803e3..27129b2 100644
--- a/rtems-mock/make/linux/4.8/centos/5/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.8/centos/5/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.8/centos/5/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.8/centos/5/SRPMS
 
 $(FTPHOME)/linux/4.8/centos/5/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.8/centos/5/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.8/centos/5/SRPMS \
-	$(FTPHOME)/linux/4.8/centos/5/SRPMS
+	$(CACHEDIR)/linux/4.8/centos/5/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.8/centos/5/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.8/centos/5/SRPMS \
 	$(FTPHOME)/linux/4.8/centos/5/SRPMS
 REPOS += $(FTPHOME)/linux/4.8/centos/5/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.8/centos/5/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.8/centos/5/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.8/centos/5/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.8/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.8/centos/5/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.8/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.8/centos/5/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.8/centos/5/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.8/centos/5/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.8/centos/5/i386/make.mk b/rtems-mock/make/linux/4.8/centos/5/i386/make.mk
index bb16ade..9d28e80 100644
--- a/rtems-mock/make/linux/4.8/centos/5/i386/make.mk
+++ b/rtems-mock/make/linux/4.8/centos/5/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.8/centos/5/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.8/centos/5/i386/debug
 
 $(FTPHOME)/linux/4.8/centos/5/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.8/centos/5/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.8/centos/5/i386 \
-	$(FTPHOME)/linux/4.8/centos/5/i386
+	$(CACHEDIR)/linux/4.8/centos/5/i386
+	mkdir -p $(FTPHOME)/linux/4.8/centos/5/i386
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.8/centos/5/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.8/centos/5/i386
 REPOS += $(FTPHOME)/linux/4.8/centos/5/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.8/centos/5/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.8/centos/5/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.8/centos/5/i386/debug \
-	$(FTPHOME)/linux/4.8/centos/5/i386/debug
+	$(CACHEDIR)/linux/4.8/centos/5/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.8/centos/5/i386/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.8/centos/5/i386/debug $(FTPHOME)/linux/4.8/centos/5/i386/debug
 REPOS += $(FTPHOME)/linux/4.8/centos/5/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.8/centos/5/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.8/centos/5/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.8/centos/5/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.8/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.8/centos/5/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.8/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.8/centos/5/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.8/centos/5/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.8/centos/5/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.8/centos/5/i386) | \
diff --git a/rtems-mock/make/linux/4.8/centos/5/x86_64/make.mk b/rtems-mock/make/linux/4.8/centos/5/x86_64/make.mk
index 04b6c8f..8da0d5f 100644
--- a/rtems-mock/make/linux/4.8/centos/5/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.8/centos/5/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.8/centos/5/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.8/centos/5/x86_64/debug
 
 $(FTPHOME)/linux/4.8/centos/5/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.8/centos/5/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.8/centos/5/x86_64 \
-	$(FTPHOME)/linux/4.8/centos/5/x86_64
+	$(CACHEDIR)/linux/4.8/centos/5/x86_64
+	mkdir -p $(FTPHOME)/linux/4.8/centos/5/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.8/centos/5/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.8/centos/5/x86_64
 REPOS += $(FTPHOME)/linux/4.8/centos/5/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.8/centos/5/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.8/centos/5/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.8/centos/5/x86_64/debug \
-	$(FTPHOME)/linux/4.8/centos/5/x86_64/debug
+	$(CACHEDIR)/linux/4.8/centos/5/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.8/centos/5/x86_64/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.8/centos/5/x86_64/debug $(FTPHOME)/linux/4.8/centos/5/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.8/centos/5/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.8/centos/5/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.8/centos/5/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.8/centos/5/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.8/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.8/centos/5/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.8/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.8/centos/5/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.8/centos/5/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.8/centos/5/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.8/centos/5/x86_64) | \
diff --git a/rtems-mock/make/linux/4.9/centos/5/SRPMS/make.mk b/rtems-mock/make/linux/4.9/centos/5/SRPMS/make.mk
index a1f7764..ab88706 100644
--- a/rtems-mock/make/linux/4.9/centos/5/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.9/centos/5/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.9/centos/5/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.9/centos/5/SRPMS
 
 $(FTPHOME)/linux/4.9/centos/5/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/5/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/5/SRPMS \
-	$(FTPHOME)/linux/4.9/centos/5/SRPMS
+	$(CACHEDIR)/linux/4.9/centos/5/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.9/centos/5/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.9/centos/5/SRPMS \
 	$(FTPHOME)/linux/4.9/centos/5/SRPMS
 REPOS += $(FTPHOME)/linux/4.9/centos/5/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.9/centos/5/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.9/centos/5/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.9/centos/5/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.9/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/5/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.9/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/5/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.9/centos/5/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.9/centos/5/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.9/centos/5/i386/make.mk b/rtems-mock/make/linux/4.9/centos/5/i386/make.mk
index fa06c27..949401d 100644
--- a/rtems-mock/make/linux/4.9/centos/5/i386/make.mk
+++ b/rtems-mock/make/linux/4.9/centos/5/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.9/centos/5/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.9/centos/5/i386/debug
 
 $(FTPHOME)/linux/4.9/centos/5/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/5/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/5/i386 \
-	$(FTPHOME)/linux/4.9/centos/5/i386
+	$(CACHEDIR)/linux/4.9/centos/5/i386
+	mkdir -p $(FTPHOME)/linux/4.9/centos/5/i386
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.9/centos/5/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.9/centos/5/i386
 REPOS += $(FTPHOME)/linux/4.9/centos/5/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.9/centos/5/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/5/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/5/i386/debug \
-	$(FTPHOME)/linux/4.9/centos/5/i386/debug
+	$(CACHEDIR)/linux/4.9/centos/5/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.9/centos/5/i386/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.9/centos/5/i386/debug $(FTPHOME)/linux/4.9/centos/5/i386/debug
 REPOS += $(FTPHOME)/linux/4.9/centos/5/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.9/centos/5/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.9/centos/5/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.9/centos/5/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.9/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/5/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.9/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/5/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.9/centos/5/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.9/centos/5/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.9/centos/5/i386) | \
diff --git a/rtems-mock/make/linux/4.9/centos/5/x86_64/make.mk b/rtems-mock/make/linux/4.9/centos/5/x86_64/make.mk
index 91ca6be..df2d885 100644
--- a/rtems-mock/make/linux/4.9/centos/5/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.9/centos/5/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/4.9/centos/5/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.9/centos/5/x86_64/debug
 
 $(FTPHOME)/linux/4.9/centos/5/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/5/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/5/x86_64 \
-	$(FTPHOME)/linux/4.9/centos/5/x86_64
+	$(CACHEDIR)/linux/4.9/centos/5/x86_64
+	mkdir -p $(FTPHOME)/linux/4.9/centos/5/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.9/centos/5/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/4.9/centos/5/x86_64
 REPOS += $(FTPHOME)/linux/4.9/centos/5/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.9/centos/5/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/5/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/5/x86_64/debug \
-	$(FTPHOME)/linux/4.9/centos/5/x86_64/debug
+	$(CACHEDIR)/linux/4.9/centos/5/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.9/centos/5/x86_64/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/4.9/centos/5/x86_64/debug $(FTPHOME)/linux/4.9/centos/5/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.9/centos/5/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/4.9/centos/5/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.9/centos/5/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.9/centos/5/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.9/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/5/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.9/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/5/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.9/centos/5/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.9/centos/5/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.9/centos/5/x86_64) | \
diff --git a/rtems-mock/make/linux/4.9/centos/6/SRPMS/make.mk b/rtems-mock/make/linux/4.9/centos/6/SRPMS/make.mk
index 34d459c..247d0b8 100644
--- a/rtems-mock/make/linux/4.9/centos/6/SRPMS/make.mk
+++ b/rtems-mock/make/linux/4.9/centos/6/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/4.9/centos/6/SRPMS:
 DIRS += $(CACHEDIR)/linux/4.9/centos/6/SRPMS
 
 $(FTPHOME)/linux/4.9/centos/6/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/6/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/6/SRPMS \
-	$(FTPHOME)/linux/4.9/centos/6/SRPMS
+	$(CACHEDIR)/linux/4.9/centos/6/SRPMS
+	mkdir -p $(FTPHOME)/linux/4.9/centos/6/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.9/centos/6/SRPMS \
 	$(FTPHOME)/linux/4.9/centos/6/SRPMS
 REPOS += $(FTPHOME)/linux/4.9/centos/6/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/4.9/centos/6/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.9/centos/6/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/4.9/centos/6/SRPMS
 
-$(FTPHOME)/linux/obsolete/4.9/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/6/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.9/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/6/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.9/centos/6/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.9/centos/6/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/4.9/centos/6/i386/make.mk b/rtems-mock/make/linux/4.9/centos/6/i386/make.mk
index 5a0e108..482a57f 100644
--- a/rtems-mock/make/linux/4.9/centos/6/i386/make.mk
+++ b/rtems-mock/make/linux/4.9/centos/6/i386/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.9/centos/6/i386/debug:
 DIRS += $(CACHEDIR)/linux/4.9/centos/6/i386/debug
 
 $(FTPHOME)/linux/4.9/centos/6/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/6/i386/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/6/i386 \
-	$(FTPHOME)/linux/4.9/centos/6/i386
+	$(CACHEDIR)/linux/4.9/centos/6/i386
+	mkdir -p $(FTPHOME)/linux/4.9/centos/6/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.9/centos/6/i386 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.9/centos/6/i386 \
 	$(FTPHOME)/linux/4.9/centos/6/i386
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.9/centos/6/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/li
 REPOS += $(FTPHOME)/linux/4.9/centos/6/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.9/centos/6/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/6/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/6/i386/debug \
-	$(FTPHOME)/linux/4.9/centos/6/i386/debug
+	$(CACHEDIR)/linux/4.9/centos/6/i386/debug
+	mkdir -p $(FTPHOME)/linux/4.9/centos/6/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.9/centos/6/i386/debug $(FTPHOME)/linux/4.9/centos/6/i386/debug
 REPOS += $(FTPHOME)/linux/4.9/centos/6/i386/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.9/centos/6/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.9/centos/6/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.9/centos/6/i386/debug
 
-$(FTPHOME)/linux/obsolete/4.9/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/6/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.9/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/6/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.9/centos/6/i386/debug \
 	$(FTPHOME)/linux/obsolete/4.9/centos/6/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.9/centos/6/i386) | \
diff --git a/rtems-mock/make/linux/4.9/centos/6/x86_64/make.mk b/rtems-mock/make/linux/4.9/centos/6/x86_64/make.mk
index 9be534e..1495f6b 100644
--- a/rtems-mock/make/linux/4.9/centos/6/x86_64/make.mk
+++ b/rtems-mock/make/linux/4.9/centos/6/x86_64/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/4.9/centos/6/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/4.9/centos/6/x86_64/debug
 
 $(FTPHOME)/linux/4.9/centos/6/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/6/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/6/x86_64 \
-	$(FTPHOME)/linux/4.9/centos/6/x86_64
+	$(CACHEDIR)/linux/4.9/centos/6/x86_64
+	mkdir -p $(FTPHOME)/linux/4.9/centos/6/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.9/centos/6/x86_64 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64 \
 	$(FTPHOME)/linux/4.9/centos/6/x86_64
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/4.9/centos/6/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/
 REPOS += $(FTPHOME)/linux/4.9/centos/6/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/4.9/centos/6/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/4.9/centos/6/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/4.9/centos/6/x86_64/debug \
-	$(FTPHOME)/linux/4.9/centos/6/x86_64/debug
+	$(CACHEDIR)/linux/4.9/centos/6/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/4.9/centos/6/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/4.9/centos/6/x86_64/debug $(FTPHOME)/linux/4.9/centos/6/x86_64/debug
 REPOS += $(FTPHOME)/linux/4.9/centos/6/x86_64/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/6/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/4.9/centos/6/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/4.9/centos/6/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) 4.9/centos/6/x86_64) | \
diff --git a/rtems-mock/make/linux/infrastructure/centos/5/SRPMS/make.mk b/rtems-mock/make/linux/infrastructure/centos/5/SRPMS/make.mk
index 9d5b481..afaf9e7 100644
--- a/rtems-mock/make/linux/infrastructure/centos/5/SRPMS/make.mk
+++ b/rtems-mock/make/linux/infrastructure/centos/5/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/centos/5/SRPMS:
 DIRS += $(CACHEDIR)/linux/infrastructure/centos/5/SRPMS
 
 $(FTPHOME)/linux/infrastructure/centos/5/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/5/SRPMS \
-	$(FTPHOME)/linux/infrastructure/centos/5/SRPMS
+	$(CACHEDIR)/linux/infrastructure/centos/5/SRPMS
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/5/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/centos/5/SRPMS \
 	$(FTPHOME)/linux/infrastructure/centos/5/SRPMS
 REPOS += $(FTPHOME)/linux/infrastructure/centos/5/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/centos/5/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/centos/5/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/centos/5/SRPMS
 
-$(FTPHOME)/linux/obsolete/infrastructure/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/centos/5/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/5/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/centos/5/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/centos/5/i386/make.mk b/rtems-mock/make/linux/infrastructure/centos/5/i386/make.mk
index ad81f64..4f6c299 100644
--- a/rtems-mock/make/linux/infrastructure/centos/5/i386/make.mk
+++ b/rtems-mock/make/linux/infrastructure/centos/5/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/infrastructure/centos/5/i386/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/centos/5/i386/debug
 
 $(FTPHOME)/linux/infrastructure/centos/5/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/i386/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/5/i386 \
-	$(FTPHOME)/linux/infrastructure/centos/5/i386
+	$(CACHEDIR)/linux/infrastructure/centos/5/i386
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/5/i386
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/centos/5/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/infrastructure/centos/5/i386
 REPOS += $(FTPHOME)/linux/infrastructure/centos/5/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/centos/5/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/5/i386/debug \
-	$(FTPHOME)/linux/infrastructure/centos/5/i386/debug
+	$(CACHEDIR)/linux/infrastructure/centos/5/i386/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/5/i386/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/centos/5/i386/debug $(FTPHOME)/linux/infrastructure/centos/5/i386/debug
 REPOS += $(FTPHOME)/linux/infrastructure/centos/5/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/centos/5/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/centos/5/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/centos/5/i386/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/centos/5/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/5/i386/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/5/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/centos/5/i386) | \
diff --git a/rtems-mock/make/linux/infrastructure/centos/5/x86_64/make.mk b/rtems-mock/make/linux/infrastructure/centos/5/x86_64/make.mk
index f28f4c4..cb08611 100644
--- a/rtems-mock/make/linux/infrastructure/centos/5/x86_64/make.mk
+++ b/rtems-mock/make/linux/infrastructure/centos/5/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/infrastructure/centos/5/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/centos/5/x86_64/debug
 
 $(FTPHOME)/linux/infrastructure/centos/5/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/5/x86_64 \
-	$(FTPHOME)/linux/infrastructure/centos/5/x86_64
+	$(CACHEDIR)/linux/infrastructure/centos/5/x86_64
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/5/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/centos/5/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/infrastructure/centos/5/x86_64
 REPOS += $(FTPHOME)/linux/infrastructure/centos/5/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/centos/5/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/5/x86_64/debug \
-	$(FTPHOME)/linux/infrastructure/centos/5/x86_64/debug
+	$(CACHEDIR)/linux/infrastructure/centos/5/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/5/x86_64/debug
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/centos/5/x86_64/debug $(FTPHOME)/linux/infrastructure/centos/5/x86_64/debug
 REPOS += $(FTPHOME)/linux/infrastructure/centos/5/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/centos/5/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/centos/5/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/centos/5/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/centos/5/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/5/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/5/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/5/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/centos/5/x86_64) | \
diff --git a/rtems-mock/make/linux/infrastructure/centos/6/SRPMS/make.mk b/rtems-mock/make/linux/infrastructure/centos/6/SRPMS/make.mk
index aaaadf9..f6f1739 100644
--- a/rtems-mock/make/linux/infrastructure/centos/6/SRPMS/make.mk
+++ b/rtems-mock/make/linux/infrastructure/centos/6/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/centos/6/SRPMS:
 DIRS += $(CACHEDIR)/linux/infrastructure/centos/6/SRPMS
 
 $(FTPHOME)/linux/infrastructure/centos/6/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/6/SRPMS \
-	$(FTPHOME)/linux/infrastructure/centos/6/SRPMS
+	$(CACHEDIR)/linux/infrastructure/centos/6/SRPMS
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/6/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/centos/6/SRPMS \
 	$(FTPHOME)/linux/infrastructure/centos/6/SRPMS
 REPOS += $(FTPHOME)/linux/infrastructure/centos/6/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/centos/6/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/centos/6/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/centos/6/SRPMS
 
-$(FTPHOME)/linux/obsolete/infrastructure/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/centos/6/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/6/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/centos/6/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/centos/6/i386/make.mk b/rtems-mock/make/linux/infrastructure/centos/6/i386/make.mk
index 8b475a3..ded3c59 100644
--- a/rtems-mock/make/linux/infrastructure/centos/6/i386/make.mk
+++ b/rtems-mock/make/linux/infrastructure/centos/6/i386/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/infrastructure/centos/6/i386/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/centos/6/i386/debug
 
 $(FTPHOME)/linux/infrastructure/centos/6/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/i386/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/6/i386 \
-	$(FTPHOME)/linux/infrastructure/centos/6/i386
+	$(CACHEDIR)/linux/infrastructure/centos/6/i386
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/6/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/centos/6/i386 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386 \
 	$(FTPHOME)/linux/infrastructure/centos/6/i386
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/infrastructure/centos/6/i386/repodata/repomd.xml: $(wildcard $(
 REPOS += $(FTPHOME)/linux/infrastructure/centos/6/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/centos/6/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/6/i386/debug \
-	$(FTPHOME)/linux/infrastructure/centos/6/i386/debug
+	$(CACHEDIR)/linux/infrastructure/centos/6/i386/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/6/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/centos/6/i386/debug $(FTPHOME)/linux/infrastructure/centos/6/i386/debug
 REPOS += $(FTPHOME)/linux/infrastructure/centos/6/i386/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/6/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/centos/6/i386) | \
diff --git a/rtems-mock/make/linux/infrastructure/centos/6/x86_64/make.mk b/rtems-mock/make/linux/infrastructure/centos/6/x86_64/make.mk
index 1374a5b..0d18387 100644
--- a/rtems-mock/make/linux/infrastructure/centos/6/x86_64/make.mk
+++ b/rtems-mock/make/linux/infrastructure/centos/6/x86_64/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/infrastructure/centos/6/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/centos/6/x86_64/debug
 
 $(FTPHOME)/linux/infrastructure/centos/6/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/6/x86_64 \
-	$(FTPHOME)/linux/infrastructure/centos/6/x86_64
+	$(CACHEDIR)/linux/infrastructure/centos/6/x86_64
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/6/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/centos/6/x86_64 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64 \
 	$(FTPHOME)/linux/infrastructure/centos/6/x86_64
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/infrastructure/centos/6/x86_64/repodata/repomd.xml: $(wildcard
 REPOS += $(FTPHOME)/linux/infrastructure/centos/6/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/centos/6/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/centos/6/x86_64/debug \
-	$(FTPHOME)/linux/infrastructure/centos/6/x86_64/debug
+	$(CACHEDIR)/linux/infrastructure/centos/6/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/centos/6/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/centos/6/x86_64/debug $(FTPHOME)/linux/infrastructure/centos/6/x86_64/debug
 REPOS += $(FTPHOME)/linux/infrastructure/centos/6/x86_64/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/centos/6/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/centos/6/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/centos/6/x86_64) | \
diff --git a/rtems-mock/make/linux/infrastructure/fedora/16/SRPMS/make.mk b/rtems-mock/make/linux/infrastructure/fedora/16/SRPMS/make.mk
index 022ffc5..fbdfb43 100644
--- a/rtems-mock/make/linux/infrastructure/fedora/16/SRPMS/make.mk
+++ b/rtems-mock/make/linux/infrastructure/fedora/16/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/fedora/16/SRPMS:
 DIRS += $(CACHEDIR)/linux/infrastructure/fedora/16/SRPMS
 
 $(FTPHOME)/linux/infrastructure/fedora/16/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/16/SRPMS \
-	$(FTPHOME)/linux/infrastructure/fedora/16/SRPMS
+	$(CACHEDIR)/linux/infrastructure/fedora/16/SRPMS
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/16/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/16/SRPMS \
 	$(FTPHOME)/linux/infrastructure/fedora/16/SRPMS
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/16/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/SRPMS
 
-$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/fedora/16/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/fedora/16/i386/make.mk b/rtems-mock/make/linux/infrastructure/fedora/16/i386/make.mk
index 5135ce2..aff46b5 100644
--- a/rtems-mock/make/linux/infrastructure/fedora/16/i386/make.mk
+++ b/rtems-mock/make/linux/infrastructure/fedora/16/i386/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/infrastructure/fedora/16/i386/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/fedora/16/i386/debug
 
 $(FTPHOME)/linux/infrastructure/fedora/16/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/i386/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/16/i386 \
-	$(FTPHOME)/linux/infrastructure/fedora/16/i386
+	$(CACHEDIR)/linux/infrastructure/fedora/16/i386
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/16/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/16/i386 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386 \
 	$(FTPHOME)/linux/infrastructure/fedora/16/i386
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/infrastructure/fedora/16/i386/repodata/repomd.xml: $(wildcard $
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/16/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/fedora/16/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/16/i386/debug \
-	$(FTPHOME)/linux/infrastructure/fedora/16/i386/debug
+	$(CACHEDIR)/linux/infrastructure/fedora/16/i386/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/16/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/16/i386/debug $(FTPHOME)/linux/infrastructure/fedora/16/i386/debug
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/16/i386/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/fedora/16/i386) | \
diff --git a/rtems-mock/make/linux/infrastructure/fedora/16/x86_64/make.mk b/rtems-mock/make/linux/infrastructure/fedora/16/x86_64/make.mk
index b1a29de..e9311ec 100644
--- a/rtems-mock/make/linux/infrastructure/fedora/16/x86_64/make.mk
+++ b/rtems-mock/make/linux/infrastructure/fedora/16/x86_64/make.mk
@@ -13,8 +13,8 @@ $(CACHEDIR)/linux/infrastructure/fedora/16/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/fedora/16/x86_64/debug
 
 $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/16/x86_64 \
-	$(FTPHOME)/linux/infrastructure/fedora/16/x86_64
+	$(CACHEDIR)/linux/infrastructure/fedora/16/x86_64
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/16/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/16/x86_64 -x '*-debuginfo-*' \
 	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64 \
 	$(FTPHOME)/linux/infrastructure/fedora/16/x86_64
@@ -22,8 +22,8 @@ $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/repodata/repomd.xml: $(wildcard
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/16/x86_64/debug \
-	$(FTPHOME)/linux/infrastructure/fedora/16/x86_64/debug
+	$(CACHEDIR)/linux/infrastructure/fedora/16/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/16/x86_64/debug $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/debug
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/debug/repodata/repomd.xml
 
@@ -35,7 +35,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/16/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/16/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/fedora/16/x86_64) | \
diff --git a/rtems-mock/make/linux/infrastructure/fedora/17/SRPMS/make.mk b/rtems-mock/make/linux/infrastructure/fedora/17/SRPMS/make.mk
index 145b643..010306b 100644
--- a/rtems-mock/make/linux/infrastructure/fedora/17/SRPMS/make.mk
+++ b/rtems-mock/make/linux/infrastructure/fedora/17/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/fedora/17/SRPMS:
 DIRS += $(CACHEDIR)/linux/infrastructure/fedora/17/SRPMS
 
 $(FTPHOME)/linux/infrastructure/fedora/17/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/17/SRPMS \
-	$(FTPHOME)/linux/infrastructure/fedora/17/SRPMS
+	$(CACHEDIR)/linux/infrastructure/fedora/17/SRPMS
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/17/SRPMS
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/17/SRPMS \
 	$(FTPHOME)/linux/infrastructure/fedora/17/SRPMS
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/17/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/SRPMS
 
-$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/fedora/17/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/fedora/17/i386/make.mk b/rtems-mock/make/linux/infrastructure/fedora/17/i386/make.mk
index 99a2331..61d9f43 100644
--- a/rtems-mock/make/linux/infrastructure/fedora/17/i386/make.mk
+++ b/rtems-mock/make/linux/infrastructure/fedora/17/i386/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/infrastructure/fedora/17/i386/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/fedora/17/i386/debug
 
 $(FTPHOME)/linux/infrastructure/fedora/17/i386/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/i386/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/17/i386 \
-	$(FTPHOME)/linux/infrastructure/fedora/17/i386
+	$(CACHEDIR)/linux/infrastructure/fedora/17/i386
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/17/i386
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/17/i386 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/infrastructure/fedora/17/i386
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/17/i386/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/fedora/17/i386/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/i386/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/17/i386/debug \
-	$(FTPHOME)/linux/infrastructure/fedora/17/i386/debug
+	$(CACHEDIR)/linux/infrastructure/fedora/17/i386/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/17/i386/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/17/i386/debug $(FTPHOME)/linux/infrastructure/fedora/17/i386/debug
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/17/i386/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/i386/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/i386/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/i386/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/i386/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/i386/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/i386/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/i386/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/i386
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/fedora/17/i386) | \
diff --git a/rtems-mock/make/linux/infrastructure/fedora/17/x86_64/make.mk b/rtems-mock/make/linux/infrastructure/fedora/17/x86_64/make.mk
index 3e524dd..c544195 100644
--- a/rtems-mock/make/linux/infrastructure/fedora/17/x86_64/make.mk
+++ b/rtems-mock/make/linux/infrastructure/fedora/17/x86_64/make.mk
@@ -13,15 +13,15 @@ $(CACHEDIR)/linux/infrastructure/fedora/17/x86_64/debug:
 DIRS += $(CACHEDIR)/linux/infrastructure/fedora/17/x86_64/debug
 
 $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/17/x86_64 \
-	$(FTPHOME)/linux/infrastructure/fedora/17/x86_64
+	$(CACHEDIR)/linux/infrastructure/fedora/17/x86_64
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/17/x86_64
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/17/x86_64 -x '*-debuginfo-*' \
 	$(FTPHOME)/linux/infrastructure/fedora/17/x86_64
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/repodata/repomd.xml
 
 $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/debug/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/fedora/17/x86_64/debug \
-	$(FTPHOME)/linux/infrastructure/fedora/17/x86_64/debug
+	$(CACHEDIR)/linux/infrastructure/fedora/17/x86_64/debug
+	mkdir -p $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/debug
 	$(CREATEREPO) -d -c $(CACHEDIR)/linux/infrastructure/fedora/17/x86_64/debug $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/debug
 REPOS += $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/debug/repodata/repomd.xml
 
@@ -33,7 +33,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/x86_64/debug:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/x86_64/debug
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/fedora/17/x86_64/debug
 
-$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/fedora/17/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/x86_64/debug \
 	$(FTPHOME)/linux/obsolete/infrastructure/fedora/17/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/fedora/17/x86_64) | \
diff --git a/rtems-mock/make/linux/infrastructure/suse/11.4/SRPMS/make.mk b/rtems-mock/make/linux/infrastructure/suse/11.4/SRPMS/make.mk
index f2a7a1e..eb9fa6f 100644
--- a/rtems-mock/make/linux/infrastructure/suse/11.4/SRPMS/make.mk
+++ b/rtems-mock/make/linux/infrastructure/suse/11.4/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/suse/11.4/SRPMS:
 DIRS += $(CACHEDIR)/linux/infrastructure/suse/11.4/SRPMS
 
 $(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/suse/11.4/SRPMS \
-	$(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS
+	$(CACHEDIR)/linux/infrastructure/suse/11.4/SRPMS
+	mkdir -p $(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/suse/11.4/SRPMS \
 	$(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS
 REPOS += $(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/SRPMS
 
-$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/suse/11.4/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/suse/11.4/i586/make.mk b/rtems-mock/make/linux/infrastructure/suse/11.4/i586/make.mk
index c5843a6..d6bf92a 100644
--- a/rtems-mock/make/linux/infrastructure/suse/11.4/i586/make.mk
+++ b/rtems-mock/make/linux/infrastructure/suse/11.4/i586/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/suse/11.4/i586:
 DIRS += $(CACHEDIR)/linux/infrastructure/suse/11.4/i586
 
 $(FTPHOME)/linux/infrastructure/suse/11.4/i586/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/i586/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/suse/11.4/i586 \
-	$(FTPHOME)/linux/infrastructure/suse/11.4/i586
+	$(CACHEDIR)/linux/infrastructure/suse/11.4/i586
+	mkdir -p $(FTPHOME)/linux/infrastructure/suse/11.4/i586
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/suse/11.4/i586 \
 	$(FTPHOME)/linux/infrastructure/suse/11.4/i586
 REPOS += $(FTPHOME)/linux/infrastructure/suse/11.4/i586/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/i586:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/i586
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/i586
 
-$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/i586/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/i586/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/i586/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/i586/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/i586
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/suse/11.4/i586) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/suse/11.4/x86_64/make.mk b/rtems-mock/make/linux/infrastructure/suse/11.4/x86_64/make.mk
index 58b7353..2b451c7 100644
--- a/rtems-mock/make/linux/infrastructure/suse/11.4/x86_64/make.mk
+++ b/rtems-mock/make/linux/infrastructure/suse/11.4/x86_64/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/suse/11.4/x86_64:
 DIRS += $(CACHEDIR)/linux/infrastructure/suse/11.4/x86_64
 
 $(FTPHOME)/linux/infrastructure/suse/11.4/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/suse/11.4/x86_64 \
-	$(FTPHOME)/linux/infrastructure/suse/11.4/x86_64
+	$(CACHEDIR)/linux/infrastructure/suse/11.4/x86_64
+	mkdir -p $(FTPHOME)/linux/infrastructure/suse/11.4/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/suse/11.4/x86_64 \
 	$(FTPHOME)/linux/infrastructure/suse/11.4/x86_64
 REPOS += $(FTPHOME)/linux/infrastructure/suse/11.4/x86_64/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/x86_64:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/x86_64
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/x86_64
 
-$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/11.4/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/suse/11.4/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/suse/11.4/x86_64) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/suse/12.1/SRPMS/make.mk b/rtems-mock/make/linux/infrastructure/suse/12.1/SRPMS/make.mk
index dc7d114..ade6305 100644
--- a/rtems-mock/make/linux/infrastructure/suse/12.1/SRPMS/make.mk
+++ b/rtems-mock/make/linux/infrastructure/suse/12.1/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/suse/12.1/SRPMS:
 DIRS += $(CACHEDIR)/linux/infrastructure/suse/12.1/SRPMS
 
 $(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/suse/12.1/SRPMS \
-	$(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS
+	$(CACHEDIR)/linux/infrastructure/suse/12.1/SRPMS
+	mkdir -p $(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/suse/12.1/SRPMS \
 	$(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS
 REPOS += $(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/SRPMS:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/SRPMS
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/SRPMS
 
-$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/SRPMS/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/SRPMS/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/SRPMS
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/suse/12.1/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/suse/12.1/i586/make.mk b/rtems-mock/make/linux/infrastructure/suse/12.1/i586/make.mk
index 1777fda..b55fc22 100644
--- a/rtems-mock/make/linux/infrastructure/suse/12.1/i586/make.mk
+++ b/rtems-mock/make/linux/infrastructure/suse/12.1/i586/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/suse/12.1/i586:
 DIRS += $(CACHEDIR)/linux/infrastructure/suse/12.1/i586
 
 $(FTPHOME)/linux/infrastructure/suse/12.1/i586/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/i586/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/suse/12.1/i586 \
-	$(FTPHOME)/linux/infrastructure/suse/12.1/i586
+	$(CACHEDIR)/linux/infrastructure/suse/12.1/i586
+	mkdir -p $(FTPHOME)/linux/infrastructure/suse/12.1/i586
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/suse/12.1/i586 \
 	$(FTPHOME)/linux/infrastructure/suse/12.1/i586
 REPOS += $(FTPHOME)/linux/infrastructure/suse/12.1/i586/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/i586:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/i586
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/i586
 
-$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/i586/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/i586/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/i586/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/i586/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/i586
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/suse/12.1/i586) | \
 	while read a; do \
diff --git a/rtems-mock/make/linux/infrastructure/suse/12.1/x86_64/make.mk b/rtems-mock/make/linux/infrastructure/suse/12.1/x86_64/make.mk
index 86e08ca..4306807 100644
--- a/rtems-mock/make/linux/infrastructure/suse/12.1/x86_64/make.mk
+++ b/rtems-mock/make/linux/infrastructure/suse/12.1/x86_64/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/linux/infrastructure/suse/12.1/x86_64:
 DIRS += $(CACHEDIR)/linux/infrastructure/suse/12.1/x86_64
 
 $(FTPHOME)/linux/infrastructure/suse/12.1/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/x86_64/*.rpm) \
-	$(CACHEDIR)/linux/infrastructure/suse/12.1/x86_64 \
-	$(FTPHOME)/linux/infrastructure/suse/12.1/x86_64
+	$(CACHEDIR)/linux/infrastructure/suse/12.1/x86_64
+	mkdir -p $(FTPHOME)/linux/infrastructure/suse/12.1/x86_64
 	$(CREATEREPO) -s sha -c $(CACHEDIR)/linux/infrastructure/suse/12.1/x86_64 \
 	$(FTPHOME)/linux/infrastructure/suse/12.1/x86_64
 REPOS += $(FTPHOME)/linux/infrastructure/suse/12.1/x86_64/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/x86_64:
 	mkdir -p $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/x86_64
 DIRS += $(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/x86_64
 
-$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/x86_64/*.rpm) \
+$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/x86_64/.stamp: $(wildcard $(FTPHOME)/linux/infrastructure/suse/12.1/x86_64/*rpm) \
 	$(FTPHOME)/linux/obsolete/infrastructure/suse/12.1/x86_64
 	@(cd $(FTPHOME)/linux && $(REPOCLEAN) infrastructure/suse/12.1/x86_64) | \
 	while read a; do \
diff --git a/rtems-mock/make/make.mk.in b/rtems-mock/make/make.mk.in
index f053db5..ef4ac42 100644
--- a/rtems-mock/make/make.mk.in
+++ b/rtems-mock/make/make.mk.in
@@ -13,8 +13,8 @@ DIRS += $(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@
 @DBG at DIRS += $(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@/debug
 
 $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/repodata/repomd.xml: $(wildcard $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/*.rpm) \
-	$(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@ \
-	$(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@
+	$(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@
+	mkdir -p $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@
 @DBG@	$(CREATEREPO)@SHA@@SQL@ -c $(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@ -x '*-debuginfo-*' \
 @NODBG@	$(CREATEREPO)@SHA@@SQL@ -c $(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@ \
 @DRPMS@	--deltas --max-delta-rpm-size 200000000 --oldpackagedirs $(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@ \
@@ -23,8 +23,8 @@ $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/repodata/repomd.xml: $(wildcard $(FTPHOME)/@O
 REPOS += $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/repodata/repomd.xml
 
 @DBG@$(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/debug/repodata/repomd.xml: $(wildcard $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/debug/*.rpm) \
- at DBG@	$(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@/debug \
- at DBG@	$(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/debug
+ at DBG@	$(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@/debug
+ at DBG@	mkdir -p $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/debug
 @DBG@	$(CREATEREPO)@SHA@@SQL@ -c $(CACHEDIR)/@OSDIR@/@DISTRO@/@ARCH@/debug $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/debug
 @DBG at REPOS += $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/debug/repodata/repomd.xml
 @DBG@
@@ -36,7 +36,7 @@ DIRS += $(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@
 @DBG@	mkdir -p $(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@/debug
 @DBG at DIRS += $(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@/debug
 
-$(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@/.stamp: $(wildcard $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/*.rpm) \
+$(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@/.stamp: $(wildcard $(FTPHOME)/@OSDIR@/@DISTRO@/@ARCH@/*rpm) \
 @DBG@	$(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@/debug \
 	$(FTPHOME)/@OSDIR@/obsolete/@DISTRO@/@ARCH@
 	@(cd $(FTPHOME)/@OSDIR@ && $(REPOCLEAN) @DISTRO@/@ARCH@) | \
diff --git a/rtems-mock/make/mingw32/4.10/.rpms/SRPMS/make.mk b/rtems-mock/make/mingw32/4.10/.rpms/SRPMS/make.mk
index 598f9a7..28d3e8a 100644
--- a/rtems-mock/make/mingw32/4.10/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/mingw32/4.10/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.10/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/mingw32/4.10/.rpms/SRPMS
 
 $(FTPHOME)/mingw32/4.10/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.10/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/mingw32/4.10/.rpms/SRPMS \
-	$(FTPHOME)/mingw32/4.10/.rpms/SRPMS
+	$(CACHEDIR)/mingw32/4.10/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/mingw32/4.10/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.10/.rpms/SRPMS \
 	$(FTPHOME)/mingw32/4.10/.rpms/SRPMS
 REPOS += $(FTPHOME)/mingw32/4.10/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.10/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.10/.rpms/SRPMS
 DIRS += $(FTPHOME)/mingw32/obsolete/4.10/.rpms/SRPMS
 
-$(FTPHOME)/mingw32/obsolete/4.10/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.10/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.10/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.10/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.10/.rpms/SRPMS
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.10/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw32/4.10/.rpms/i686/make.mk b/rtems-mock/make/mingw32/4.10/.rpms/i686/make.mk
index c54d123..7ae3898 100644
--- a/rtems-mock/make/mingw32/4.10/.rpms/i686/make.mk
+++ b/rtems-mock/make/mingw32/4.10/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.10/.rpms/i686:
 DIRS += $(CACHEDIR)/mingw32/4.10/.rpms/i686
 
 $(FTPHOME)/mingw32/4.10/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.10/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/mingw32/4.10/.rpms/i686 \
-	$(FTPHOME)/mingw32/4.10/.rpms/i686
+	$(CACHEDIR)/mingw32/4.10/.rpms/i686
+	mkdir -p $(FTPHOME)/mingw32/4.10/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.10/.rpms/i686 \
 	$(FTPHOME)/mingw32/4.10/.rpms/i686
 REPOS += $(FTPHOME)/mingw32/4.10/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.10/.rpms/i686:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.10/.rpms/i686
 DIRS += $(FTPHOME)/mingw32/obsolete/4.10/.rpms/i686
 
-$(FTPHOME)/mingw32/obsolete/4.10/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.10/.rpms/i686/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.10/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.10/.rpms/i686/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.10/.rpms/i686
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.10/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw32/4.11/.rpms/SRPMS/make.mk b/rtems-mock/make/mingw32/4.11/.rpms/SRPMS/make.mk
index c276549..7055ea0 100644
--- a/rtems-mock/make/mingw32/4.11/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/mingw32/4.11/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.11/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/mingw32/4.11/.rpms/SRPMS
 
 $(FTPHOME)/mingw32/4.11/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.11/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/mingw32/4.11/.rpms/SRPMS \
-	$(FTPHOME)/mingw32/4.11/.rpms/SRPMS
+	$(CACHEDIR)/mingw32/4.11/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/mingw32/4.11/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.11/.rpms/SRPMS \
 	$(FTPHOME)/mingw32/4.11/.rpms/SRPMS
 REPOS += $(FTPHOME)/mingw32/4.11/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.11/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.11/.rpms/SRPMS
 DIRS += $(FTPHOME)/mingw32/obsolete/4.11/.rpms/SRPMS
 
-$(FTPHOME)/mingw32/obsolete/4.11/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.11/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.11/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.11/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.11/.rpms/SRPMS
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.11/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw32/4.11/.rpms/i686/make.mk b/rtems-mock/make/mingw32/4.11/.rpms/i686/make.mk
index 8c9fcc4..02e6d16 100644
--- a/rtems-mock/make/mingw32/4.11/.rpms/i686/make.mk
+++ b/rtems-mock/make/mingw32/4.11/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.11/.rpms/i686:
 DIRS += $(CACHEDIR)/mingw32/4.11/.rpms/i686
 
 $(FTPHOME)/mingw32/4.11/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.11/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/mingw32/4.11/.rpms/i686 \
-	$(FTPHOME)/mingw32/4.11/.rpms/i686
+	$(CACHEDIR)/mingw32/4.11/.rpms/i686
+	mkdir -p $(FTPHOME)/mingw32/4.11/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.11/.rpms/i686 \
 	$(FTPHOME)/mingw32/4.11/.rpms/i686
 REPOS += $(FTPHOME)/mingw32/4.11/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.11/.rpms/i686:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.11/.rpms/i686
 DIRS += $(FTPHOME)/mingw32/obsolete/4.11/.rpms/i686
 
-$(FTPHOME)/mingw32/obsolete/4.11/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.11/.rpms/i686/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.11/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.11/.rpms/i686/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.11/.rpms/i686
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.11/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw32/4.8/.rpms/SRPMS/make.mk b/rtems-mock/make/mingw32/4.8/.rpms/SRPMS/make.mk
index 7c5f105..fa0e703 100644
--- a/rtems-mock/make/mingw32/4.8/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/mingw32/4.8/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.8/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/mingw32/4.8/.rpms/SRPMS
 
 $(FTPHOME)/mingw32/4.8/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.8/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/mingw32/4.8/.rpms/SRPMS \
-	$(FTPHOME)/mingw32/4.8/.rpms/SRPMS
+	$(CACHEDIR)/mingw32/4.8/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/mingw32/4.8/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.8/.rpms/SRPMS \
 	$(FTPHOME)/mingw32/4.8/.rpms/SRPMS
 REPOS += $(FTPHOME)/mingw32/4.8/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.8/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.8/.rpms/SRPMS
 DIRS += $(FTPHOME)/mingw32/obsolete/4.8/.rpms/SRPMS
 
-$(FTPHOME)/mingw32/obsolete/4.8/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.8/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.8/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.8/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.8/.rpms/SRPMS
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.8/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw32/4.8/.rpms/i686/make.mk b/rtems-mock/make/mingw32/4.8/.rpms/i686/make.mk
index 42a36da..ad35ea1 100644
--- a/rtems-mock/make/mingw32/4.8/.rpms/i686/make.mk
+++ b/rtems-mock/make/mingw32/4.8/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.8/.rpms/i686:
 DIRS += $(CACHEDIR)/mingw32/4.8/.rpms/i686
 
 $(FTPHOME)/mingw32/4.8/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.8/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/mingw32/4.8/.rpms/i686 \
-	$(FTPHOME)/mingw32/4.8/.rpms/i686
+	$(CACHEDIR)/mingw32/4.8/.rpms/i686
+	mkdir -p $(FTPHOME)/mingw32/4.8/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.8/.rpms/i686 \
 	$(FTPHOME)/mingw32/4.8/.rpms/i686
 REPOS += $(FTPHOME)/mingw32/4.8/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.8/.rpms/i686:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.8/.rpms/i686
 DIRS += $(FTPHOME)/mingw32/obsolete/4.8/.rpms/i686
 
-$(FTPHOME)/mingw32/obsolete/4.8/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.8/.rpms/i686/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.8/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.8/.rpms/i686/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.8/.rpms/i686
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.8/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw32/4.9/.rpms/SRPMS/make.mk b/rtems-mock/make/mingw32/4.9/.rpms/SRPMS/make.mk
index 3827f42..0fdb456 100644
--- a/rtems-mock/make/mingw32/4.9/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/mingw32/4.9/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.9/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/mingw32/4.9/.rpms/SRPMS
 
 $(FTPHOME)/mingw32/4.9/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.9/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/mingw32/4.9/.rpms/SRPMS \
-	$(FTPHOME)/mingw32/4.9/.rpms/SRPMS
+	$(CACHEDIR)/mingw32/4.9/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/mingw32/4.9/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.9/.rpms/SRPMS \
 	$(FTPHOME)/mingw32/4.9/.rpms/SRPMS
 REPOS += $(FTPHOME)/mingw32/4.9/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.9/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.9/.rpms/SRPMS
 DIRS += $(FTPHOME)/mingw32/obsolete/4.9/.rpms/SRPMS
 
-$(FTPHOME)/mingw32/obsolete/4.9/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.9/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.9/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw32/4.9/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.9/.rpms/SRPMS
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.9/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw32/4.9/.rpms/i686/make.mk b/rtems-mock/make/mingw32/4.9/.rpms/i686/make.mk
index 3d3b6f3..ae90afb 100644
--- a/rtems-mock/make/mingw32/4.9/.rpms/i686/make.mk
+++ b/rtems-mock/make/mingw32/4.9/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw32/4.9/.rpms/i686:
 DIRS += $(CACHEDIR)/mingw32/4.9/.rpms/i686
 
 $(FTPHOME)/mingw32/4.9/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw32/4.9/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/mingw32/4.9/.rpms/i686 \
-	$(FTPHOME)/mingw32/4.9/.rpms/i686
+	$(CACHEDIR)/mingw32/4.9/.rpms/i686
+	mkdir -p $(FTPHOME)/mingw32/4.9/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/mingw32/4.9/.rpms/i686 \
 	$(FTPHOME)/mingw32/4.9/.rpms/i686
 REPOS += $(FTPHOME)/mingw32/4.9/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw32/obsolete/4.9/.rpms/i686:
 	mkdir -p $(FTPHOME)/mingw32/obsolete/4.9/.rpms/i686
 DIRS += $(FTPHOME)/mingw32/obsolete/4.9/.rpms/i686
 
-$(FTPHOME)/mingw32/obsolete/4.9/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.9/.rpms/i686/*.rpm) \
+$(FTPHOME)/mingw32/obsolete/4.9/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw32/4.9/.rpms/i686/*rpm) \
 	$(FTPHOME)/mingw32/obsolete/4.9/.rpms/i686
 	@(cd $(FTPHOME)/mingw32 && $(REPOCLEAN) 4.9/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw64/4.11/.rpms/SRPMS/make.mk b/rtems-mock/make/mingw64/4.11/.rpms/SRPMS/make.mk
index 4170c66..2ee577a 100644
--- a/rtems-mock/make/mingw64/4.11/.rpms/SRPMS/make.mk
+++ b/rtems-mock/make/mingw64/4.11/.rpms/SRPMS/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw64/4.11/.rpms/SRPMS:
 DIRS += $(CACHEDIR)/mingw64/4.11/.rpms/SRPMS
 
 $(FTPHOME)/mingw64/4.11/.rpms/SRPMS/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/SRPMS/*.rpm) \
-	$(CACHEDIR)/mingw64/4.11/.rpms/SRPMS \
-	$(FTPHOME)/mingw64/4.11/.rpms/SRPMS
+	$(CACHEDIR)/mingw64/4.11/.rpms/SRPMS
+	mkdir -p $(FTPHOME)/mingw64/4.11/.rpms/SRPMS
 	$(CREATEREPO) -c $(CACHEDIR)/mingw64/4.11/.rpms/SRPMS \
 	$(FTPHOME)/mingw64/4.11/.rpms/SRPMS
 REPOS += $(FTPHOME)/mingw64/4.11/.rpms/SRPMS/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw64/obsolete/4.11/.rpms/SRPMS:
 	mkdir -p $(FTPHOME)/mingw64/obsolete/4.11/.rpms/SRPMS
 DIRS += $(FTPHOME)/mingw64/obsolete/4.11/.rpms/SRPMS
 
-$(FTPHOME)/mingw64/obsolete/4.11/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/SRPMS/*.rpm) \
+$(FTPHOME)/mingw64/obsolete/4.11/.rpms/SRPMS/.stamp: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/SRPMS/*rpm) \
 	$(FTPHOME)/mingw64/obsolete/4.11/.rpms/SRPMS
 	@(cd $(FTPHOME)/mingw64 && $(REPOCLEAN) 4.11/.rpms/SRPMS) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw64/4.11/.rpms/i686/make.mk b/rtems-mock/make/mingw64/4.11/.rpms/i686/make.mk
index e11ab31..000441a 100644
--- a/rtems-mock/make/mingw64/4.11/.rpms/i686/make.mk
+++ b/rtems-mock/make/mingw64/4.11/.rpms/i686/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw64/4.11/.rpms/i686:
 DIRS += $(CACHEDIR)/mingw64/4.11/.rpms/i686
 
 $(FTPHOME)/mingw64/4.11/.rpms/i686/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/i686/*.rpm) \
-	$(CACHEDIR)/mingw64/4.11/.rpms/i686 \
-	$(FTPHOME)/mingw64/4.11/.rpms/i686
+	$(CACHEDIR)/mingw64/4.11/.rpms/i686
+	mkdir -p $(FTPHOME)/mingw64/4.11/.rpms/i686
 	$(CREATEREPO) -c $(CACHEDIR)/mingw64/4.11/.rpms/i686 \
 	$(FTPHOME)/mingw64/4.11/.rpms/i686
 REPOS += $(FTPHOME)/mingw64/4.11/.rpms/i686/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw64/obsolete/4.11/.rpms/i686:
 	mkdir -p $(FTPHOME)/mingw64/obsolete/4.11/.rpms/i686
 DIRS += $(FTPHOME)/mingw64/obsolete/4.11/.rpms/i686
 
-$(FTPHOME)/mingw64/obsolete/4.11/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/i686/*.rpm) \
+$(FTPHOME)/mingw64/obsolete/4.11/.rpms/i686/.stamp: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/i686/*rpm) \
 	$(FTPHOME)/mingw64/obsolete/4.11/.rpms/i686
 	@(cd $(FTPHOME)/mingw64 && $(REPOCLEAN) 4.11/.rpms/i686) | \
 	while read a; do \
diff --git a/rtems-mock/make/mingw64/4.11/.rpms/x86_64/make.mk b/rtems-mock/make/mingw64/4.11/.rpms/x86_64/make.mk
index ffa930d..3b823fa 100644
--- a/rtems-mock/make/mingw64/4.11/.rpms/x86_64/make.mk
+++ b/rtems-mock/make/mingw64/4.11/.rpms/x86_64/make.mk
@@ -7,8 +7,8 @@ $(CACHEDIR)/mingw64/4.11/.rpms/x86_64:
 DIRS += $(CACHEDIR)/mingw64/4.11/.rpms/x86_64
 
 $(FTPHOME)/mingw64/4.11/.rpms/x86_64/repodata/repomd.xml: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/x86_64/*.rpm) \
-	$(CACHEDIR)/mingw64/4.11/.rpms/x86_64 \
-	$(FTPHOME)/mingw64/4.11/.rpms/x86_64
+	$(CACHEDIR)/mingw64/4.11/.rpms/x86_64
+	mkdir -p $(FTPHOME)/mingw64/4.11/.rpms/x86_64
 	$(CREATEREPO) -c $(CACHEDIR)/mingw64/4.11/.rpms/x86_64 \
 	$(FTPHOME)/mingw64/4.11/.rpms/x86_64
 REPOS += $(FTPHOME)/mingw64/4.11/.rpms/x86_64/repodata/repomd.xml
@@ -17,7 +17,7 @@ $(FTPHOME)/mingw64/obsolete/4.11/.rpms/x86_64:
 	mkdir -p $(FTPHOME)/mingw64/obsolete/4.11/.rpms/x86_64
 DIRS += $(FTPHOME)/mingw64/obsolete/4.11/.rpms/x86_64
 
-$(FTPHOME)/mingw64/obsolete/4.11/.rpms/x86_64/.stamp: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/x86_64/*.rpm) \
+$(FTPHOME)/mingw64/obsolete/4.11/.rpms/x86_64/.stamp: $(wildcard $(FTPHOME)/mingw64/4.11/.rpms/x86_64/*rpm) \
 	$(FTPHOME)/mingw64/obsolete/4.11/.rpms/x86_64
 	@(cd $(FTPHOME)/mingw64 && $(REPOCLEAN) 4.11/.rpms/x86_64) | \
 	while read a; do \




More information about the vc mailing list