.PHONY: clean
clean:
- $(info RM -rf $(builddir))
+ $(info RM -rf $(builddir))
$(RM) -rf $(builddir)
$(_LMB): $(MANPAGES) $(wildcard $(LMBDIR)/* $(LMBDIR)/*/*) | $$(@D)/
- $(info Build $@)
+ $(info Build $@)
$(BUILDLMB) $(MANDIR) \
| $(SPONGE) $@
$(_CATMAN_troff): %.cat.troff: %.eqn $(MK) | $$(@D)/
- $(info EQN $@)
+ $(info EQN $@)
! ($(EQN) -T$(NROFF_OUT_DEVICE) $(EQNFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_CATMAN): %.cat: %.cat.set $(MK) | $$(@D)/
- $(info GROTTY $@)
+ $(info GROTTY $@)
$(GROTTY) $(GROTTYFLAGS) <$< >$@
$(_CATMAN_MAN_set): %.cat.set: %.cat.troff $(groff_man_ignore_grep) $(MK) | $$(@D)/
- $(info TROFF $@)
+ $(info TROFF $@)
! ($(TROFF) -man $(TROFFFLAGS) $(NROFFFLAGS) <$< 2>&1 >$@ \
| $(GREP) -v -f '$(groff_man_ignore_grep)' \
|| $(TRUE); \
| $(GREP) ^ >&2
$(_CATMAN_MDOC_set): %.cat.set: %.cat.troff $(MK) | $$(@D)/
- $(info TROFF $@)
+ $(info TROFF $@)
! ($(TROFF) -mdoc $(TROFFFLAGS) $(NROFFFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_PAGEEXDIRS):
- +$(info MKDIR $@)
+ +$(info MKDIR $@)
+$(MKDIR) -p $@
+$(TOUCH) $@
$(_UNITS_ex_o): %.o: %.c $(MK)
- $(info CC $@)
+ $(info CC $@)
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
$(_UNITS_ex_bin): %: %.o $(MK)
- $(info LD $@)
+ $(info LD $@)
$(LD) $(LDFLAGS) -o $@ $< $(LDLIBS)
$(_UNITS_ex_src): $$(patsubst $(_MANDIR)/%.d,$(MANDIR)/%,$$(@D)) $(MK) | $$(@D)/
$(_UNITS_ex_c): $$(filter $$(@D)/%.h,$(_UNITS_ex_h))
$(_UNITS_ex_src):
- $(info SED $@)
+ $(info SED $@)
<$< \
$(SED) -n \
-e '/^\.TH/,/^\.SH/{/^\.SH/!p}' \
# make MAN2HTMLFLAGS=whatever html
# The sed removes the lines "Content-type: text/html\n\n"
$(_HTMLPAGES): $(_HTMLDIR)/%$(htmlext): $(MANDIR)/% $(MK) | $$(@D)/
- $(info MAN2HTML $@)
+ $(info MAN2HTML $@)
$(MAN2HTML) $(MAN2HTMLFLAGS) $< \
| $(SED) -e 1,2d >$@
$(_PDFMAN_troff): %.pdf.troff: %.eqn $(MK) | $$(@D)/
- $(info EQN $@)
+ $(info EQN $@)
! ($(EQN) -Tpdf $(EQNFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_PDFMAN): %.pdf: %.pdf.set $(MK) | $$(@D)/
- $(info GROPDF $@)
+ $(info GROPDF $@)
$(GROPDF) $(GROPDFFLAGS) <$< >$@
$(_PDFMAN_MAN_set): %.pdf.set: %.pdf.troff $(MK) | $$(@D)/
- $(info TROFF $@)
+ $(info TROFF $@)
! ($(TROFF) -man -Tpdf $(TROFFFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_PDFMAN_MDOC_set): %.pdf.set: %.pdf.troff $(MK) | $$(@D)/
- $(info TROFF $@)
+ $(info TROFF $@)
! ($(TROFF) -mdoc -Tpdf $(TROFFFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_MAN_tbl): $(_MANDIR)/%.tbl: $(MANDIR)/% $(MK) | $$(@D)/
- $(info PRECONV $@)
+ $(info PRECONV $@)
$(PRECONV) $(PRECONVFLAGS) $< >$@
$(_MAN_eqn): %.eqn: %.tbl $(MK) | $$(@D)/
- $(info TBL $@)
+ $(info TBL $@)
$(TBL) <$< >$@
$(_PSMAN_troff): %.ps.troff: %.eqn $(MK) | $$(@D)/
- $(info EQN $@)
+ $(info EQN $@)
! ($(EQN) -Tps $(EQNFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_PSMAN): %.ps: %.ps.set $(MK) | $$(@D)/
- $(info GROPS $@)
+ $(info GROPS $@)
$(GROPS) $(GROPSFLAGS) <$< >$@
$(_PSMAN_MAN_set): %.ps.set: %.ps.troff $(MK) | $$(@D)/
- $(info TROFF $@)
+ $(info TROFF $@)
! ($(TROFF) -man -Tps $(TROFFFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_PSMAN_MDOC_set): %.ps.set: %.ps.troff $(MK) | $$(@D)/
- $(info TROFF $@)
+ $(info TROFF $@)
! ($(TROFF) -mdoc -Tps $(TROFFFLAGS) <$< 2>&1 >$@) \
| $(GREP) ^ >&2
$(_CHECK_catman_grep): %.grep: % $(MK) | $$(@D)/
- $(info COL $@)
+ $(info COL $@)
$(COL) $(COLFLAGS) <$< >$@
$(_CHECK_catman): %.check-catman.touch: %.cat.grep $(MK) | $$(@D)/
- $(info GREP $@)
+ $(info GREP $@)
! $(GREP) -n '.\{$(MANWIDTH)\}.' $< /dev/null >&2
$(TOUCH) $@
SPONGE := sponge
-TS := ts
endif # include guard
$(builddir)/dist/%/:
- +$(info INSTALL $@)
+ +$(info MKDIR $@)
+$(INSTALL_DIR) $@
include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk
-include $(MAKEFILEDIR)/configure/build-depends/moreutils.mk
+include $(MAKEFILEDIR)/configure/build-depends/sed.mk
include $(MAKEFILEDIR)/configure/directory_variables.mk
include $(MAKEFILEDIR)/configure/version.mk
include $(MAKEFILEDIR)/dist/check/tar.mk
$(builddir)/distcheck.all.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
#$(info MAKE all)
#$(MAKE) -C $< all \
- #| $(TS) 'MAKE all:'
+ #| $(SED) 's,^,MAKE all: ,'
$(TOUCH) $@
include $(MAKEFILEDIR)/build/_.mk
include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk
-include $(MAKEFILEDIR)/configure/build-depends/moreutils.mk
+include $(MAKEFILEDIR)/configure/build-depends/sed.mk
include $(MAKEFILEDIR)/configure/directory_variables.mk
include $(MAKEFILEDIR)/configure/verbose.mk
include $(MAKEFILEDIR)/configure/version.mk
$(builddir)/distcheck.build-pre.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE build-pre)
$(MAKE) -C $< build-pre \
- | $(TS) 'MAKE build-pre:'
+ | $(SED) 's,^,MAKE build-pre: ,'
$(TOUCH) $@
$(builddir)/distcheck.build-catman.touch: $(builddir)/distcheck.build-pre.touch
$(builddir)/distcheck.build-catman.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE build-catman)
$(MAKE) -C $< -k build-catman $(HIDE_ERR) \
- | $(TS) 'MAKE build-catman (-k $(HIDE_ERR)):' \
+ | $(SED) 's,^,MAKE build-catman -k: ,' \
|| $(TRUE)
$(MAKE) -C $< -i nothing $(DISTCHECK_IGNORE_BUILD_CATMAN) $(HIDE_ERR) \
- | $(TS) 'MAKE build-catman (-i $(HIDE_ERR)):'
+ | $(SED) 's,^,MAKE build-catman -i: ,'
$(MAKE) -C $< build-catman \
- | $(TS) 'MAKE build-catman:'
+ | $(SED) 's,^,MAKE build-catman: ,'
$(TOUCH) $@
$(builddir)/distcheck.build-ps.touch: $(builddir)/distcheck.build-pre.touch
$(builddir)/distcheck.build-ps.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE build-ps)
$(MAKE) -C $< -k build-ps $(HIDE_ERR) \
- | $(TS) 'MAKE build-ps (-k $(HIDE_ERR)):' \
+ | $(SED) 's,^,MAKE build-ps -k: ,' \
|| $(TRUE)
$(MAKE) -C $< -i nothing $(DISTCHECK_IGNORE_BUILD_PS) $(HIDE_ERR) \
- | $(TS) 'MAKE build-ps (-i $(HIDE_ERR)):'
+ | $(SED) 's,^,MAKE build-ps -i: ,'
$(MAKE) -C $< build-ps \
- | $(TS) 'MAKE build-ps:'
+ | $(SED) 's,^,MAKE build-ps: ,'
$(TOUCH) $@
$(builddir)/distcheck.build-pdf.touch: $(builddir)/distcheck.build-pre.touch
$(builddir)/distcheck.build-pdf.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE build-pdf)
$(MAKE) -C $< -k build-pdf $(HIDE_ERR) \
- | $(TS) 'MAKE build-pdf (-k $(HIDE_ERR)):' \
+ | $(SED) 's,^,MAKE build-pdf -k: ,' \
|| $(TRUE)
$(MAKE) -C $< -i nothing $(DISTCHECK_IGNORE_BUILD_PDF) $(HIDE_ERR) \
- | $(TS) 'MAKE build-pdf (-i $(HIDE_ERR)):'
+ | $(SED) 's,^,MAKE build-pdf -i: ,'
$(MAKE) -C $< build-pdf \
- | $(TS) 'MAKE build-pdf:'
+ | $(SED) 's,^,MAKE build-pdf: ,'
$(TOUCH) $@
$(builddir)/distcheck.build-html.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE build-html)
$(MAKE) -C $< build-html \
- | $(TS) 'MAKE build-html:'
+ | $(SED) 's,^,MAKE build-html: ,'
$(TOUCH) $@
$(builddir)/distcheck.build-book.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE build-book)
$(MAKE) -C $< -k build-book $(HIDE_ERR) \
- | $(TS) 'MAKE build-book ($(HIDE_ERR)):' \
+ | $(SED) 's,^,MAKE build-book: ,' \
|| $(TRUE)
$(MAKE) -C $< build-book \
- | $(TS) 'MAKE build-book:'
+ | $(SED) 's,^,MAKE build-book: ,'
$(TOUCH) $@
include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk
-include $(MAKEFILEDIR)/configure/build-depends/moreutils.mk
+include $(MAKEFILEDIR)/configure/build-depends/sed.mk
include $(MAKEFILEDIR)/configure/build-depends/tar.mk
include $(MAKEFILEDIR)/configure/directory_variables.mk
include $(MAKEFILEDIR)/configure/verbose.mk
$(builddir)/distcheck.check-catman.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE check-catman)
$(MAKE) -C $< -k check-catman $(HIDE_ERR) \
- | $(TS) 'MAKE check-catman (-k $(HIDE_ERR)):' \
+ | $(SED) 's,^,MAKE check-catman -k: ,' \
|| $(TRUE)
$(MAKE) -C $< -i nothing $(DISTCHECK_IGNORE_CHECK_CATMAN) $(HIDE_ERR) \
- | $(TS) 'MAKE check-catman (-i $(HIDE_ERR)):'
+ | $(SED) 's,^,MAKE check-catman -i: ,'
$(MAKE) -C $< check-catman \
- | $(TS) 'MAKE check-catman:'
+ | $(SED) 's,^,MAKE check-catman: ,'
$(TOUCH) $@
$(builddir)/distcheck.check.touch: \
$(builddir)/distcheck.check.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE check)
$(MAKE) -C $< check \
- | $(TS) 'MAKE check:'
+ | $(SED) 's,^,MAKE check: ,'
$(TOUCH) $@
MAKEFILE_DIST_CHECK_DIST_INCLUDED := 1
-include $(MAKEFILEDIR)/configure/build-depends/moreutils.mk
+include $(MAKEFILEDIR)/configure/build-depends/sed.mk
include $(MAKEFILEDIR)/configure/version.mk
include $(MAKEFILEDIR)/dist/check/tar.mk
$(REDIST): %/.tmp/$(DISTNAME).tar: % | $$(@D)/
$(info MAKE dist)
$(MAKE) -C $< dist \
- | $(TS) 'MAKE dist:'
+ | $(SED) 's,^,MAKE dist: ,'
endif # include guard
include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk
-include $(MAKEFILEDIR)/configure/build-depends/moreutils.mk
+include $(MAKEFILEDIR)/configure/build-depends/sed.mk
include $(MAKEFILEDIR)/configure/directory_variables.mk
include $(MAKEFILEDIR)/configure/version.mk
include $(MAKEFILEDIR)/dist/check/tar.mk
$(builddir)/distcheck.install.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE install)
$(MAKE) -C $< install DESTDIR=$(TMPDIR2) \
- | $(TS) 'MAKE install:'
+ | $(SED) 's,^,MAKE install: ,'
$(TOUCH) $@
include $(MAKEFILEDIR)/build/_.mk
include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk
-include $(MAKEFILEDIR)/configure/build-depends/moreutils.mk
+include $(MAKEFILEDIR)/configure/build-depends/sed.mk
include $(MAKEFILEDIR)/configure/directory_variables.mk
include $(MAKEFILEDIR)/configure/verbose.mk
include $(MAKEFILEDIR)/configure/version.mk
$(builddir)/distcheck.lint-man.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE lint-man)
$(MAKE) -C $< -k lint-man $(HIDE_ERR) \
- | $(TS) 'MAKE lint-man (-k $(HIDE_ERR)):' \
+ | $(SED) 's,^,MAKE lint-man -k: ,' \
|| $(TRUE)
$(MAKE) -C $< -i nothing $(DISTCHECK_IGNORE_LINT_MAN) $(HIDE_ERR) \
- | $(TS) 'MAKE lint-man (-i $(HIDE_ERR)):'
+ | $(SED) 's,^,MAKE lint-man -i: ,'
$(MAKE) -C $< lint-man \
- | $(TS) 'MAKE lint-man:'
+ | $(SED) 's,^,MAKE lint-man: ,'
$(TOUCH) $@
$(builddir)/distcheck.lint-mdoc.touch: $(TMPDIR1)/$(DISTNAME) | $$(@D)/
$(info MAKE lint-mdoc)
$(MAKE) -C $< lint-mdoc \
- | $(TS) 'MAKE lint-mdoc:'
+ | $(SED) 's,^,MAKE lint-mdoc: ,'
$(TOUCH) $@
$(DISTFILE): $(_DISTFILES) $(MK) | $$(@D)/
- $(info TAR $@)
+ $(info TAR $@)
$(TAR) $(TARFLAGS) -cf $@ -T /dev/null
$(DISTFILESCMD) \
| $(SED) 's,^$(srcdir)/,$(_DISTDIR)/,' \
define DISTFILE_z_rule
$(DISTFILE).$(2): %.$(2): % $(MK) | $$$$(@D)/
- $$(info $(1) $$@)
+ $$(info $(1) $$@)
$($(1)) $($(1)FLAGS) -kf $$<
$(TOUCH) $$@
endef
%/:
- +$(info MKDIR $@)
+ +$(info MKDIR $@)
+$(INSTALL_DIR) $@
%-rm:
- $(info RM $*)
+ $(info RM $*)
$(RM) $*
$(_htmlpages): $(_htmldir)/%: $(_HTMLDIR)/% $(MK) | $$(@D)/
- $(info INSTALL $@)
+ $(info INSTALL $@)
$(INSTALL_DATA) -T $< $@
$(_manpages):
- $(info INSTALL $@)
+ $(info INSTALL $@)
<$< \
$(SED) $(foreach s, $(MANSECTIONS), \
-e '/^\.so /s, man$(s)/\(.*\)\.$(s)$$, $(notdir $(man$(s)dir))/\1$(man$(s)ext)$(Z),') \
$(_LINT_c_clang-tidy): %.lint-c.clang-tidy.touch: %.c $(MK)
- $(info CLANG_TIDY $@)
+ $(info CLANG_TIDY $@)
$(CLANG_TIDY) $(CLANG_TIDYFLAGS) $< -- $(CPPFLAGS) $(CLANGFLAGS) 2>&1 \
| $(SED) '/generated\.$$/d' >&2
$(TOUCH) $@
$(_LINT_c_iwyu): %.lint-c.iwyu.touch: %.c $(MK)
- $(info LINT (iwyu) $@)
+ $(info IWYU $@)
! ($(IWYU) $(IWYUFLAGS) $(CPPFLAGS) $(CLANGFLAGS) $< 2>&1 \
| $(SED) -n '/should add these lines:/,$$p' \
| $(TAC) \
$(_LINT_man_mandoc): $(_MANDIR)/%.lint-man.mandoc.touch: $(MANDIR)/% $(mandoc_man_ignore_grep) $(MK) | $$(@D)/
- $(info LINT (mandoc) $@)
+ $(info MANDOC $@)
! ($(MANDOC) -man $(MANDOCFLAGS) $< 2>&1 \
| $(GREP) -v -f '$(mandoc_man_ignore_grep)' \
|| $(TRUE); \
$(_LINT_man_tbl): $(_MANDIR)/%.lint-man.tbl.touch: $(MANDIR)/% $(MK) | $$(@D)/
- $(info LINT (tbl comment) $@)
+ $(info GREP $@)
if $(GREP) -q '^\.TS$$' $< && ! $(HEAD) -n1 $< | $(GREP) -q '\\" t$$'; \
then \
>&2 $(ECHO) "$<:1: missing '\\\" t' comment:"; \
$(_LINT_mdoc_mandoc): $(_MANDIR)/%.lint-mdoc.mandoc.touch: $(MANDIR)/% $(mandoc_mdoc_ignore_grep) | $$(@D)/
- $(info LINT (mandoc) $@)
+ $(info MANDOC $@)
! ($(MANDOC) -mdoc $(MANDOCFLAGS) $< 2>&1 \
| $(GREP) -v -f '$(mandoc_mdoc_ignore_grep)' \
|| $(TRUE); \