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: Fix linking after package build
Linking the projects-dir Makefile fails if make pkg-rebuild has been run on jw-build, because it leaves another projects-dir-minimal.mk below the dist directory. Fix that. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d740f30226
commit
8de4a90796
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ $(JWBDIR):
|
||||||
all: link-makefile.done
|
all: link-makefile.done
|
||||||
link-makefile.done: | $(JWBDIR)
|
link-makefile.done: | $(JWBDIR)
|
||||||
[ -L $(PROJECTS_MAKEFILE_NAME) ] || \
|
[ -L $(PROJECTS_MAKEFILE_NAME) ] || \
|
||||||
ln -sf `find $(JWBDIR) -name '*.mk' -print0 | xargs -0 grep -l some-random-string-to-id-this-makefile` \
|
ln -sf `git -C $(JWBDIR) ls-files | sed '/\.mk$$/ !d; s|^|$(JWBDIR)/|' | xargs grep -l some-random-string-to-id-this-makefile` \
|
||||||
$(PROJECTS_MAKEFILE_NAME)
|
$(PROJECTS_MAKEFILE_NAME)
|
||||||
touch $@
|
touch $@
|
||||||
clean: clean.link-makefile
|
clean: clean.link-makefile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue