From a30fc912447036c77292e6e721a44624d3976644 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 27 Sep 2012 15:01:30 -0400 Subject: Makefile: create directories as nescessary --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b8971b4..b0f5cab 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ subcommands = help mvn-basename mvn-install mvn-localrepo +dirs = $(DESTDIR)/usr/share/jh $(DESTDIR)/usr/bin #### @@ -12,12 +13,15 @@ all: PHONY build build: PHONY jh $(subcommand_files) $(help_files) install: $(DESTDIR)/usr/bin/jh $(addprefix $(DESTDIR)/usr/share/jh/,$(subcommand_files) $(help_files)) -$(DESTDIR)/usr/share/jh/%: % +$(DESTDIR)/usr/share/jh/%: % | $(DESTDIR)/usr/share/jh cp '$<' '$@' -$(DESTDIR)/usr/bin/jh: jh +$(DESTDIR)/usr/bin/jh: jh | $(DESTDIR)/usr/bin cp '$<' '$@' +$(dirs): + install -d '$@' + #### .PHONY: PHONY FORCE -- cgit v1.2.3-54-g00ecf