From 81b7c020f2143768a0b7579b967b2d262f5d2ed3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 24 Mar 2016 09:56:45 +0100 Subject: make sure build directory exists Signed-off-by: Christian Hesse --- GNUmakefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 2cb5acd..3eb33d1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -33,15 +33,18 @@ LIBNCURSES_CONFIG = --disable-database --with-fallbacks=st,st-256color,xterm,xte --without-tests --without-progs --without-debug --without-profile \ --without-cxx-shared --without-termlib --without--ticlib +dependency/build: + mkdir -p "$@" + dependency/sources: - mkdir -p "$@" "$(dir $@)/build" + mkdir -p "$@" dependency/sources/musl-%: | dependency/sources wget -c -O $@.part http://www.musl-libc.org/releases/$(LIBMUSL).tar.gz mv $@.part $@ [ -z $(LIBMUSL_SHA1) ] || (echo '$(LIBMUSL_SHA1) $@' | sha1sum -c) -dependency/build/libmusl-extract: dependency/sources/$(LIBMUSL).tar.gz +dependency/build/libmusl-extract: dependency/sources/$(LIBMUSL).tar.gz dependency/build tar xzf $< -C $(dir $@) touch $@ @@ -62,7 +65,7 @@ dependency/sources/ncurses-%: | dependency/sources mv $@.part $@ [ -z $(LIBNCURSES_SHA1) ] || (echo '$(LIBNCURSES_SHA1) $@' | sha1sum -c) -dependency/build/libncurses-extract: dependency/sources/$(LIBNCURSES).tar.gz +dependency/build/libncurses-extract: dependency/sources/$(LIBNCURSES).tar.gz dependency/build tar xzf $< -C $(dir $@) touch $@ @@ -83,7 +86,7 @@ dependency/sources/libtermkey-%: | dependency/sources mv $@.part $@ [ -z $(LIBTERMKEY_SHA1) ] || (echo '$(LIBTERMKEY_SHA1) $@' | sha1sum -c) -dependency/build/libtermkey-extract: dependency/sources/$(LIBTERMKEY).tar.gz +dependency/build/libtermkey-extract: dependency/sources/$(LIBTERMKEY).tar.gz dependency/build tar xzf $< -C $(dir $@) touch $@ @@ -102,7 +105,7 @@ dependency/sources/lua-%: | dependency/sources mv $@.part $@ [ -z $(LIBLUA_SHA1) ] || (echo '$(LIBLUA_SHA1) $@' | sha1sum -c) -dependency/build/liblua-extract: dependency/sources/$(LIBLUA).tar.gz +dependency/build/liblua-extract: dependency/sources/$(LIBLUA).tar.gz dependency/build tar xzf $< -C $(dir $@) touch $@ @@ -125,7 +128,7 @@ dependency/sources/lpeg-%: | dependency/sources mv $@.part $@ [ -z $(LIBLPEG_SHA1) ] || (echo '$(LIBLPEG_SHA1) $@' | sha1sum -c) -dependency/build/liblpeg-extract: dependency/sources/$(LIBLPEG).tar.gz +dependency/build/liblpeg-extract: dependency/sources/$(LIBLPEG).tar.gz dependency/build tar xzf $< -C $(dir $@) touch $@ -- cgit v1.2.3