mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
projects-dir-minimal.mk: Link Makefile more agressively
The link to the projects dir toplevel Makefile is not created if a jw-build directory already exists for some reason, fix that. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9ddbc547c2
commit
1a0eb42191
1 changed files with 10 additions and 1 deletions
|
|
@ -34,8 +34,17 @@ all:
|
|||
|
||||
include $(PROJECTS_DIR_INCLUDE_MK)
|
||||
|
||||
$(PROJECTS_DIR_INCLUDE_MK):
|
||||
$(PROJECTS_DIR_INCLUDE_MK): | $(JWBDIR)
|
||||
|
||||
$(JWBDIR):
|
||||
git clone $(JWBDIR_GIT_REMOTE) $(JWBDIR)
|
||||
|
||||
all: link-makefile.done
|
||||
link-makefile.done: | $(JWBDIR)
|
||||
[ -L $(PROJECTS_MAKEFILE_NAME) ] || \
|
||||
ln -sf `find $(JWBDIR) -type f -print0 | xargs -0 grep -l some-random-string-to-id-this-makefile` \
|
||||
$(PROJECTS_MAKEFILE_NAME)
|
||||
touch $@
|
||||
clean: clean.link-makefile
|
||||
clean.link-makefile:
|
||||
rm -f link-makefile.done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue