mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
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.
This commit is contained in:
parent
0b33790421
commit
ba66752d27
@ -687,9 +687,12 @@ ifeq ($(GCC), yes)
|
|||||||
endif # GCC
|
endif # GCC
|
||||||
|
|
||||||
# Include all the dependency files generated for the current
|
# Include all the dependency files generated for the current
|
||||||
# directory. List /dev/null as dummy because if the wildcard expands
|
# directory. Note that make would complain if include was called with
|
||||||
# to nothing then make would complain.
|
# no arguments.
|
||||||
-include $(wildcard $(DEPDIR)/*.Po) /dev/null
|
Po_files := $(wildcard $(DEPDIR)/*.Po)
|
||||||
|
ifneq (,$(Po_files))
|
||||||
|
include $(Po_files)
|
||||||
|
endif
|
||||||
|
|
||||||
# hook for clean-up
|
# hook for clean-up
|
||||||
clean distclean maintainer-clean: clean-deps
|
clean distclean maintainer-clean: clean-deps
|
||||||
|
Loading…
Reference in New Issue
Block a user