Skip to content

Commit ba66752

Browse files
committed
Fix sporadic rebuilds for .pc files
The build of .pc (pkg-config) files depends on all makefiles in use, and in dependency tracking mode, the previous coding ended up including /dev/null as a makefile. Apparently, on some platforms the modification time of /dev/null changes sporadically, and so the .pc files would end up being rebuilt every so often. Fix that by changing the makefile code to do without using /dev/null.
1 parent 0b33790 commit ba66752

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Makefile.global.in

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,12 @@ ifeq ($(GCC), yes)
687687
endif # GCC
688688

689689
# Include all the dependency files generated for the current
690-
# directory. List /dev/null as dummy because if the wildcard expands
691-
# to nothing then make would complain.
692-
-include $(wildcard $(DEPDIR)/*.Po) /dev/null
690+
# directory. Note that make would complain if include was called with
691+
# no arguments.
692+
Po_files := $(wildcard $(DEPDIR)/*.Po)
693+
ifneq (,$(Po_files))
694+
include $(Po_files)
695+
endif
693696

694697
# hook for clean-up
695698
clean distclean maintainer-clean: clean-deps

0 commit comments

Comments
 (0)