X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/cb0e97d3d40a6b186bdf8639fceb27dc66927bb5..5f7a5274914472e4e599fc3fd39764408ce25b14:/snippet/glconfig.mk diff --git a/snippet/glconfig.mk b/snippet/glconfig.mk index b7ed4cc..c35a8fb 100644 --- a/snippet/glconfig.mk +++ b/snippet/glconfig.mk @@ -72,21 +72,28 @@ CLEANFILES += $(GLCONFIG) # The glconfig-gen target is intended only for use in recursive make # invocations. glconfig-gen: $(gnulib_symfiles) + $(AM_V_at) $(MKDIR_P) @GLSRC@ $(AM_V_at) depfiles=; symfiles=; \ for sym in $(gnulib_symfiles); do \ - 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"; \ done; \ - $(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 .PHONY: glconfig-gen -@AMDEP_TRUE@@am__include@ @am__quote@@GLSRC@/$(DEPDIR)/glconfig.Ph@am__quote@@dx_include_marker@ +if AMDEP +glconfig_nodeps = false +@am__include@ @am__quote@@GLSRC@/$(DEPDIR)/glconfig.Ph@am__quote@@dx_include_marker@ +else +glconfig_nodeps = true +endif # 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