diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-27 15:01:30 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-27 15:01:30 -0400 |
commit | a30fc912447036c77292e6e721a44624d3976644 (patch) | |
tree | 520fa2e75748e8311082d41d148939f6ff9a9c75 /Makefile | |
parent | c3d8da0e89d3f2213933ff85dc0cca7d829442ed (diff) |
Makefile: create directories as nescessary
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |