# SPDX-FileCopyrightText: 2022 Frank Doepper # # SPDX-License-Identifier: GPL-3.0-only build: konsum.1 agitprop.1 arbeite.1 plane.1 EXTRA = konsum.1 arbeite.1: EXTRA = callbacks.md %.1: %.head %.options %.rest cat $^ $(EXTRA) | pandoc -s - -f markdown -t man -o $@ %.options: ../dist/build/% ../dist/build/$*/$* --help 2>&1 | perl -ne 'print " $$_" if /^Options/../^\(/' | head -n-1 | tail +2 > $@ clean: rm -f *.options *.1