# The glconfig-gen target is intended only for use in recursive make
# invocations.
glconfig-gen: $(gnulib_symfiles)
# The glconfig-gen target is intended only for use in recursive make
# invocations.
glconfig-gen: $(gnulib_symfiles)
- symdir=`expr "$$sym" : '\(.*/\)'`; \
- symfile=`expr "$$sym" : '.*/\(.*\)' || printf '%s\n' "$$sym"`; \
- symbase=$$symdir.syms/`expr "$$symfile" : '\(.*\)\..*'`; \
- test -f "$$symbase.deps" && \
- depfiles="$$depfiles $$symbase.deps"; \
- symfiles="$$symfiles $$symbase.sym"; \
+ symdir=`expr "$$sym" : '\(.*/\)'`; \
+ symfile=`expr "$$sym" : '.*/\(.*\)' || printf '%s\n' "$$sym"`; \
+ symbase=$$symdir.syms/`expr "$$symfile" : '\(.*\)\..*'`; \
+ test -f "$$symbase.deps" && \
+ depfiles="$$depfiles $$symbase.deps"; \
+ symfiles="$$symfiles $$symbase.sym"; \
- $(GLCAT) $$depfiles > @GLSRC@/$(DEPDIR)/glconfig.Ph && \
- $(GLCAT) $$symfiles | sed 's/.*/#define & $(GLSYM_PREFIX)&/' \
- > $(GLCONFIG).tmp
+ $(glconfig_nodeps) \
+ || $(GLCAT) $$depfiles > @GLSRC@/$(DEPDIR)/glconfig.Ph || exit; \
+ $(GLCAT) $$symfiles | sed 's/.*/#define & $(GLSYM_PREFIX)&/' \
+ >$(GLCONFIG).tmp
# Automake 1.16 and newer use make rules to generate the dependency stubs.
# we must hook those which is kind of annoying to do. This should be harmless
# Automake 1.16 and newer use make rules to generate the dependency stubs.
# we must hook those which is kind of annoying to do. This should be harmless