build: Remove m4/gengetopt.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Jun 2016 10:40:20 +0000 (12:40 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:02:28 +0000 (11:02 +0200)
This directory only contained a single file: the makefile for
generating the command line parsers with gengetopt. Since we no longer
rely on gengetopt, we may remove $(m4_ggo_dir), m4/gengetopt/makefile
and the corresponding include directive in Makefile.real.

Makefile.real
m4/gengetopt/makefile [deleted file]

index 53607d62dccd4c0e2179ee1a93fef8cce64263dc..ca2bab538cec551e46c5c03a33c9460fba9ebfb3 100644 (file)
@@ -35,7 +35,6 @@ m4depdir := $(build_dir)/m4deps
 help2man_dir := $(build_dir)/help2man
 lls_suite_dir := $(build_dir)/lls
 lls_m4_dir := m4/lls
 help2man_dir := $(build_dir)/help2man
 lls_suite_dir := $(build_dir)/lls
 lls_m4_dir := m4/lls
-m4_ggo_dir := m4/gengetopt
 test_dir := t
 
 # sort removes duplicate words, which is all we need here
 test_dir := t
 
 # sort removes duplicate words, which is all we need here
@@ -96,7 +95,6 @@ man: $(man_pages)
 tarball: $(tarball)
 
 include $(lls_m4_dir)/makefile
 tarball: $(tarball)
 
 include $(lls_m4_dir)/makefile
-include $(m4_ggo_dir)/makefile
 include $(test_dir)/makefile.test
 ifeq ($(findstring clean, $(MAKECMDGOALS)),)
 -include $(deps)
 include $(test_dir)/makefile.test
 ifeq ($(findstring clean, $(MAKECMDGOALS)),)
 -include $(deps)
diff --git a/m4/gengetopt/makefile b/m4/gengetopt/makefile
deleted file mode 100644 (file)
index 0db9d10..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-define ggo_opts
-       --output-dir=$(cmdline_dir) \
-       --set-version="$(GIT_VERSION)" \
-       --arg-struct-name=$(*F)_args_info \
-       --file-name=$(*F).cmdline \
-       --func-name=$(*F)_cmdline_parser \
-       --set-package="para_$(*F)"
-endef
-
-.PRECIOUS: $(cmdline_dir)/%.cmdline.c $(cmdline_dir)/%.cmdline.h $(ggo_dir)/%.ggo
-
-$(cmdline_dir)/%.cmdline.h $(cmdline_dir)/%.cmdline.c: $(ggo_dir)/%.ggo | $(cmdline_dir)
-       @[ -z "$(Q)" ] || echo 'GGO $<'
-       $(Q) $(GENGETOPT) $(ggo_opts) < $<
-ifeq ($(ggo_descriptions_declared),no)
-       @echo 'extern const char *$(*F)_args_info_description;' >> $(cmdline_dir)/$(*F).cmdline.h
-endif
-
-$(m4depdir)/%.m4d: $(m4_ggo_dir)/%.m4 | $(m4depdir)
-       @[ -z "$(Q)" ] || echo 'M4D $<'
-       $(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 $<'
-       $(Q) $(M4) -I $(m4_ggo_dir) $< > $@