aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-deps5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/gen-deps b/scripts/gen-deps
index bcfb15d..7c847fb 100755
--- a/scripts/gen-deps
+++ b/scripts/gen-deps
@@ -4,8 +4,6 @@ gencommon () {
lint="build/${s%.*}${1}.l"
dep="build/${s%.*}${1}.d"
obj="build/${s%.*}${1}"
-
- mkdir -p $(dirname ${dep})
echo "${dep}:" >> deps.mk
echo "include ${dep}" >> deps.mk
@@ -36,6 +34,9 @@ case "${1}" in
func=genlink
esac
+# create all subdirectories
+mkdir -p $(echo "${2}" | xargs dirname | uniq | sed 's|^|build/|g')
+
for s in ${2}
do
${func} ${suffix}