From 59ee48c42f752358d6fbfe0a6a331c6ba51dee05 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 4 Oct 2001 14:37:27 +0000 Subject: [PATCH] scripts/Makefile: Create directories before installing to them --- scripts/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile b/scripts/Makefile index 01b804a0..c90e745e 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -29,10 +29,18 @@ # # ######################################################################## -install: - install *.sh -m 755 $(HOME)/bin/ - mkdir -p $(HOME)/.jannet - if [ -f *.conf ]; then install *.conf $(HOME)/.jannet/; fi +EXEDIR = $(HOME)/bin +CONFDIR = $(HOME)/.jannet + +$(EXEDIR): + mkdir -p $@ + +$(CONFDIR): + mkdir -p $@ + +install: $(EXEDIR) $(CONFDIR) + install *.sh -m 755 $(EXEDIR)/ + if [ -f *.conf ]; then install *.conf $(CONFDIR)/; fi clean distclean libclean: rm -rf *~ .*.swp core