diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-10 17:04:14 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-10 17:04:14 -0400 |
commit | 4af098024317ee20833aedd3bdd770f73e79a9e1 (patch) | |
tree | ffaf3c7721b324bc7cbf232a6634dbd7b6569ce8 | |
parent | 1ff57cf08fa861fd0b7ec37e12ec199b4d0a7d39 (diff) |
fixit
-rw-r--r-- | build-aux/Makefile.each.tail/50-sd.mk | 4 | ||||
-rw-r--r-- | build-aux/Makefile.each.tail/70-sdcompletion.mk | 13 | ||||
-rw-r--r-- | build-aux/Makefile.once.head/30-am.mk | 34 | ||||
-rw-r--r-- | src/systemd-mount/systemd-mount.completion.zsh | 0 |
4 files changed, 27 insertions, 24 deletions
diff --git a/build-aux/Makefile.each.tail/50-sd.mk b/build-aux/Makefile.each.tail/50-sd.mk index 7927a31917..b7afb178a2 100644 --- a/build-aux/Makefile.each.tail/50-sd.mk +++ b/build-aux/Makefile.each.tail/50-sd.mk @@ -88,7 +88,7 @@ $(outdir)/%.c: $(srcdir)/%.gperf $(outdir)/%.c: $(outdir)/%.gperf $(AM_V_GPERF)$(GPERF) < $< > $@ -$(addprefix $(outdir)/,_bogus_m4 $(patsubst %.m4,%,$(filter %.m4,$(files.src)))): $(outdir)/%: $(srcdir)/%.m4 $(top_builddir)/config.status +$(addprefix $(outdir)/,$(patsubst %.m4,%,$(filter %.m4,$(files.src)))): $(outdir)/%: $(srcdir)/%.m4 $(top_builddir)/config.status $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ -$(addprefix $(outdir)/,_bogus_m4_in $(patsubst %.m4.in,%,$(filter %.m4.in,$(files.src)))): $(outdir)/%: $(outdir)/%.m4 $(top_builddir)/config.status +$(addprefix $(outdir)/,$(patsubst %.m4.in,%,$(filter %.m4.in,$(files.src)))): $(outdir)/%: $(outdir)/%.m4 $(top_builddir)/config.status $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ diff --git a/build-aux/Makefile.each.tail/70-sdcompletion.mk b/build-aux/Makefile.each.tail/70-sdcompletion.mk index 99677c9407..92c37a235d 100644 --- a/build-aux/Makefile.each.tail/70-sdcompletion.mk +++ b/build-aux/Makefile.each.tail/70-sdcompletion.mk @@ -16,8 +16,11 @@ mod.sdcompletion.doc := $(value mod.sdcompletion.doc) rootbin_PROGRAMS ?= bin_PROGRAMS ?= dist_bin_SCRIPTS ?= -bashcompletion_DATA ?= -zshcompletion_DATA ?= -# We use `dist_` to trick `am` into not putting it in `am.out_DATA` -dist_bashcompletion_DATA := $(sort $(bashcompletion_DATA) $(rootbin_PROGRAMS) $(bin_PROGRAMS) $(dist_bin_SCRIPTS)) -dist_zshcompletion_DATA := $(sort $(zshcompletion_DATA) $(addprefix _,$(notdir $(rootbin_PROGRAMS) $(bin_PROGRAMS) $(dist_bin_SCRIPTS)))) + +_bashcompletion_DATA := $(sort $(bashcompletion_DATA) $(rootbin_PROGRAMS) $(bin_PROGRAMS) $(dist_bin_SCRIPTS)) +dist_bashcompletion_DATA += $(filter $(files.src),$(_bashcompletion_DATA)) +nodist_bashcompletion_DATA += $(filter-out $(files.src),$(_bashcompletion_DATA)) + +_zshcompletion_DATA := $(sort $(zshcompletion_DATA) $(addprefix _,$(notdir $(rootbin_PROGRAMS) $(bin_PROGRAMS) $(dist_bin_SCRIPTS)))) +dist_zshcompletion_DATA += $(filter $(files.src),$(_zshcompletion_DATA)) +nodist_zshcompletion_DATA += $(filter-out $(files.src),$(_zshcompletion_DATA)) diff --git a/build-aux/Makefile.once.head/30-am.mk b/build-aux/Makefile.once.head/30-am.mk index d120e73ab8..ee575eb2d1 100644 --- a/build-aux/Makefile.once.head/30-am.mk +++ b/build-aux/Makefile.once.head/30-am.mk @@ -118,15 +118,17 @@ define _am.pass1.doc endef # Utility (reused in pass 2) -_am.primary2dirs = $(filter $(patsubst %dir,%,$(filter %dir,$(.VARIABLES))),\ - $(patsubst nodist_%,%,$(patsubst dist_%,%,$(patsubst %_$1,%,$(filter %_$1,$(.VARIABLES)))))) +_am.primary2dirs = $(sort $(filter $(patsubst %dir,%,$(filter %dir,$(.VARIABLES))),\ + $(patsubst nodist_%,%,$(patsubst dist_%,%,$(patsubst %_$1,%,$(filter %_$1,$(.VARIABLES))))))) define _am.pass1 # == Pass 1: initialize variables == $(foreach _am.primary,$(_am.primaries), $(foreach _am.dirname,$(call _am.primary2dirs,$(_am.primary)), am.outpat_$(_am.dirname)_$(_am.primary) ?= % - am.syspat_$(_am.dirname)_$(_am.primary) ?= %)) + am.syspat_$(_am.dirname)_$(_am.primary) ?= % + ) +) endef define _am.pass2.doc @@ -206,17 +208,12 @@ $(foreach _am.primary,$(_am.primaries), @$$(MKDIR_P) $$(@D) $$(am.INSTALL_$(_am.primary)) - am.out_$(_am.primary) := $$(patsubst $(am.syspat_$(_am.dirname)_$(_am.primary)),$(am.outpat_$(_am.dirname)_$(_am.primary)),$$(notdir $$(nodist_$(_am.dirname)_$(_am.primary)) )) - am.sys_$(_am.primary) := $$(addprefix $$($(_am.dirname)dir)/,$$(notdir $$(nodist_$(_am.dirname)_$(_am.primary)) $$(dist_$(_am.dirname)_$(_am.primary)) )) + am.out_$(_am.primary) := $$(am.out_$(_am.primary)) $$(patsubst $(am.syspat_$(_am.dirname)_$(_am.primary)),$(am.outpat_$(_am.dirname)_$(_am.primary)),$$(notdir $$(nodist_$(_am.dirname)_$(_am.primary)) )) + am.sys_$(_am.primary) := $$(am.sys_$(_am.primary)) $$(addprefix $$($(_am.dirname)dir)/,$$(notdir $$(nodist_$(_am.dirname)_$(_am.primary)) $$(dist_$(_am.dirname)_$(_am.primary)) )) - undefine $(_am.dirname)_$(_am.primary) - undefine dist_$(_am.dirname)_$(_am.primary) - undefine nodist_$(_am.dirname)_$(_am.primary) ## (end dirname) ) - undefine noinst_$(_am.primary) - undefine check_$(_am.primary) ## (end primary) ) endef @@ -257,7 +254,8 @@ $(foreach _am.file,$(am.out_PROGRAMS), $(eval _am.var = $(call _am.file2var,$(_am.file))) ## PROGRAM: $(_am.file) ($(_am.var)) $(foreach var,_am.depends $(_am.var_PROGRAMS), - $(var) ?=) + $(var) ?= + ) _am.depends += $$(call at.path,$$(call _am.file2.o,$(_am.file)) $$(call _am.file2lib,$(_am.file),LDADD)) am.CPPFLAGS += $$($(_am.var)_CPPFLAGS) $$(call _am.file2cpp,$(_am.file),LDADD) @@ -272,8 +270,8 @@ $(foreach _am.file,$(am.out_PROGRAMS), am.CPPFLAGS := $$(am.CPPFLAGS) am.CFLAGS := $$(am.CFLAGS) - $(foreach var,_am.depends $(_am.var_PROGRAMS), - undefine $(var))) + undefine _am.depends +) endef define _am.pass4.doc @@ -312,7 +310,8 @@ $(foreach _am.file,$(am.out_LTLIBRARIES), $(eval _am.var = $(call _am.file2var,$(_am.file))) ## LTLIBRARY: $(_am.file) ($(_am.var)) $(foreach var,_am.depends $(_am.var_LTLIBRARIES), - $(var) ?=) + $(var) ?= + ) _am.depends += $$(call at.path,$$(call _am.file2.lo,$(_am.file)) $$(call _am.file2lib,$(_am.file),LIBADD)) am.CPPFLAGS += $$($(_am.var)_CPPFLAGS) $$(call _am.file2cpp,$(_am.file),LIBADD) @@ -326,8 +325,9 @@ $(foreach _am.file,$(am.out_LTLIBRARIES), am.CPPFLAGS := $$(am.CPPFLAGS) am.CFLAGS := $$(am.CFLAGS) - $(foreach var,_am.depends $(_am.var_LTLIBRARIES), - undefine $(var))) + + undefine _am.depends +) endef mod.am.depends += files @@ -337,7 +337,7 @@ define _am.pass5.doc # - Directory variable : `am.subdirs` # - Directory variable : `am.sys_$(primary)` # - Directory variable : `am.out_$(primary)` -# - Directory variable : `am.check_$(primary)` +# - Directory variable : `am.chk_$(primary)` # Outputs: # - Directory variable : `at.subdirs` # - Directory variable : `files.sys.all` diff --git a/src/systemd-mount/systemd-mount.completion.zsh b/src/systemd-mount/systemd-mount.completion.zsh new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/src/systemd-mount/systemd-mount.completion.zsh |