blob: 4794be4cd2b94e222bc699d90a5c39d50f15fbb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
subcommands = help list-commands mvn-basename mvn-install mvn-localrepo
dirs = $(DESTDIR)/usr/share/jh $(DESTDIR)/usr/bin
####
subcommand_files = $(addprefix jh-,$(subcommands))
help_files = $(addsuffix .help.txt,jh- $(subcommand_files))
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
cp '$<' '$@'
$(DESTDIR)/usr/bin/jh: jh | $(DESTDIR)/usr/bin
cp '$<' '$@'
$(dirs):
install -d '$@'
####
.PHONY: PHONY FORCE
PHONY FORCE: ; @:
|