mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
lo.mk, topdir.mk: Add target description
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
e2ef60eef6
commit
678202b105
2 changed files with 18 additions and 5 deletions
|
|
@ -6,6 +6,8 @@ config:
|
|||
SUBDIRS ?= $(wildcard inst/pre make scripts contrib tools src include lib bin \
|
||||
util plugins conf config cfg images doc test inst/post)
|
||||
|
||||
PROJECT_DESCR = $(TOPDIR)/doc/share/project.txt
|
||||
|
||||
ifneq ($(wildcard $(TOPDIR)/make/defs.mk),)
|
||||
include $(TOPDIR)/make/defs.mk
|
||||
endif
|
||||
|
|
@ -89,6 +91,10 @@ git-init:
|
|||
exit 1 ;\
|
||||
fi
|
||||
git init
|
||||
if [ -e $(PROJECT_DESCR) ]; then \
|
||||
touch $(PROJECT_DESCR) ;\
|
||||
make description ;\
|
||||
fi
|
||||
|
||||
git-init-from-cvs: git-init
|
||||
list-cvs-files.sh -f | xargs git add
|
||||
|
|
@ -119,3 +125,9 @@ git-jannet-init: git-import git-clone-to-remote
|
|||
projects-%:
|
||||
python $(MOD_SCRIPT_DIR)/build.py $* $(PROJECT)
|
||||
|
||||
$(TOPDIR)/.git/description: $(PROJECT_DESCR)
|
||||
$(MOD_SCRIPT_DIR)/ini-section.sh summary $< | tee $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
description: $(TOPDIR)/.git/description
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue