mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
.cache-projects.mk is not installed / packaged, which makes builds against an installed jw-pkg considerably slower. Change that, at the risk of making the installed jw-pkg-devel less versatile. This commit installs a cache file cache-projects.mk, renamed from .cache-projects.mk, because there's no justification for hiding an installed makefile. At least I can't think of one. Signed-off-by: Jan Lindemann <jan@janware.com>
31 lines
843 B
Makefile
31 lines
843 B
Makefile
TOPDIR = ..
|
|
CACHED_FILES := defs.mk projects.mk platform.mk Makefile
|
|
MKFILES += $(CACHE_PROJECTS_MK)
|
|
|
|
include $(TOPDIR)/make/proj.mk
|
|
include $(JWBDIR)/make/make.mk
|
|
|
|
ifneq ($(MAKECMDGOALS),install-links)
|
|
ifneq ($(MAKECMDGOALS),do-install-links)
|
|
include $(JWBDIR)/make/dirs.mk
|
|
endif
|
|
endif
|
|
|
|
include $(JWBDIR)/make/dev-utils.mk
|
|
|
|
all: cache-projects
|
|
clean: clean-cache-projects
|
|
|
|
ifeq ($(TARGET),mingw)
|
|
install: $(INSTALL_MAKEDIR)/winres.rc.tmpl
|
|
endif
|
|
|
|
grep-vars:
|
|
$(Q)sed '/^ *[A-Z]/!d; s/^[ ]*//g; s/[=+?:].*//g; s/[ ]*//g' *.mk | sort -u
|
|
|
|
cache-projects: $(CACHE_PROJECTS_MK)
|
|
clean-cache-projects:
|
|
rm -f $(CACHE_PROJECTS_MK)
|
|
$(CACHE_PROJECTS_MK): $(CACHE_PROJECT_MK)
|
|
sed '/\($(subst $(space),\|,$(CACHED_VARS_ONLY_PROJECT))\)\s*[:?]\?=/ d' $< > $@.tmp
|
|
mv $@.tmp $@
|