build: Add missing config.sh dependency for pkg-config files

Also only update config.sh when it changed to avoid spurious rebuilds.
This commit is contained in:
Diego Biurrun 2017-11-06 17:57:25 +01:00
parent 7ebe7e8e7a
commit 17b6c7efb4
2 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ $(TESTPROGS) $(TOOLS): %$(EXESUF): %.o
$(SUBDIR)lib$(NAME).version: $(SUBDIR)version.h | $(SUBDIR)
$$(M) $$(SRC_PATH)/avbuild/libversion.sh $(NAME) $$< > $$@
$(SUBDIR)lib$(NAME).pc: $(SUBDIR)version.h | $(SUBDIR)
$(SUBDIR)lib$(NAME).pc: $(SUBDIR)version.h avbuild/config.sh | $(SUBDIR)
$$(M) $$(SRC_PATH)/avbuild/pkgconfig_generate.sh $(NAME) "$(DESC)"
$(SUBDIR)lib$(NAME).ver: $(SUBDIR)lib$(NAME).v $(OBJS)

4
configure vendored
View File

@ -5385,7 +5385,7 @@ print_enabled_components libavformat/protocol_list.c URLProtocol url_protocols $
# Settings for pkg-config files
cat > avbuild/config.sh <<EOF
cat > $TMPH <<EOF
# Automatically generated by configure - do not modify!
shared=$shared
prefix=$prefix
@ -5407,3 +5407,5 @@ for lib in $LIBRARY_LIST; do
lib_deps="$(eval echo \$${lib}_deps)"
echo ${lib}_deps=\"$lib_deps\" >> avbuild/config.sh
done
cp_if_changed $TMPH avbuild/config.sh