mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
subtree.mk: Make subtree.mk work
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0f3c8aa60c
commit
8ef7d5dbcf
1 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ SUBTREE_MODE ?= 0644
|
|||
SUBTREE_DIROWNER ?= root
|
||||
SUBTREE_DIRGROUP ?= root
|
||||
SUBTREE_DIRMODE ?= 0755
|
||||
SUBTREE_INSTALL_PREFIX = /tmp/blah
|
||||
SUBTREE_INSTALL_PREFIX ?= /srv/www/proj/$(PROJECT)
|
||||
|
||||
SUBTREE_DIRS = $(shell for f in `git ls-files . | sed 's%/[^/]\+$$%%' | sort -u | grep -v Makefile`; do if [ -d "$$f" ]; then echo $$f; fi; done)
|
||||
SUBTREE_FILES = $(shell for f in `git ls-files . | grep -v Makefile`; do if [ -f "$$f" ]; then echo $$f; fi; done)
|
||||
|
|
@ -19,8 +19,8 @@ clean:
|
|||
distclean:
|
||||
|
||||
$(INSTALLED_SUBTREE_DIRS):
|
||||
@echo $(INSTALL) -d -o $(SUBTREE_DIROWNER) -g $(SUBTREE_DIRGROUP) -m $(SUBTREE_DIRMODE) $@
|
||||
$(INSTALL) -d -o $(SUBTREE_DIROWNER) -g $(SUBTREE_DIRGROUP) -m $(SUBTREE_DIRMODE) $@
|
||||
|
||||
$(SUBTREE_INSTALL_PREFIX)/%: %
|
||||
@echo $(INSTALL) -o $(SUBTREE_OWNER) -g $(SUBTREE_GROUP) -m $(SUBTREE_MODE) $< $@
|
||||
$(INSTALL) -o $(SUBTREE_OWNER) -g $(SUBTREE_GROUP) -m $(SUBTREE_MODE) $< $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue