X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=m4%2Fgengetopt%2Fmakefile;h=5130ddd1d7779790250ac52eb2e263503a1002c7;hp=af90d5bd68cc70d520dbb87fb331ac0ba3f7e317;hb=73f77a6699bb6f2345f20d8ed09b1ec6c6bf6435;hpb=32a81d7eecfa5c8585d7095631ff2cd8b7b1bf7a diff --git a/m4/gengetopt/makefile b/m4/gengetopt/makefile index af90d5bd..5130ddd1 100644 --- a/m4/gengetopt/makefile +++ b/m4/gengetopt/makefile @@ -18,9 +18,9 @@ endif $(m4depdir)/%.m4d: $(m4_ggo_dir)/%.m4 | $(m4depdir) @[ -z "$(Q)" ] || echo 'M4D $<' - $(Q) m4 -I $(m4_ggo_dir) --debug=i $< 3>&1 1>/dev/null 2>&3 \ - | awk '{if ($$0 ~ "^m4debug: input read from ") \ - print "$(ggo_dir)/$(*F).ggo: " $$NF}' > $@ + $(Q) m4 -I $(m4_ggo_dir) -s $< \ + | awk '{if ($$1 ~ /#line/) {gsub(/"/, "", $$3); if ($$3 != "$<") \ + print "$(ggo_dir)/$(*F).ggo: " $$3}}' | sort | uniq > $@ $(ggo_dir)/%.ggo: $(m4_ggo_dir)/%.m4 $(m4_ggo_dir)/header.m4 | $(ggo_dir) @[ -z "$(Q)" ] || echo 'M4 $<'