pmlag

Poor man's link aggregation
git clone git://git.finwo.net/app/pmlag
Log | Files | Refs | README | LICENSE

commit d12877295564720d0aed17363fe88c056e81efd9
parent f28c248b7499932c4b22f91812bcf53492ab16c5
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Tue, 31 Jan 2023 23:20:41 +0100

Added license & basic make targets to build manuals

Diffstat:
ALICENSE | 18++++++++++++++++++
MMakefile | 14++++++++++++--
Amanpage.1.md | 11+++++++++++
3 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -0,0 +1,18 @@ +Copyright 2023 finwo + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile @@ -14,14 +14,24 @@ override CFLAGS+=$(INCLUDES) # Which objects to generate before merging everything together OBJ:=$(SRC:.c=.o) -default: pmlag +BIN=pmlag + +default: $(BIN) %.o: %.c $(LIBS) $(CC) $(CFLAGS) $(@:.o=.c) -c -o $@ -pmlag: $(OBJ) +$(BIN): $(OBJ) $(CC) $(CFLAGS) $(OBJ) -o $@ +# Build manpage +$(BIN).1: manpage.1.md + env NAME=$(BIN) envsubst < manpage.1.md | pandoc --standalone --from markdown --to man -o $(BIN).1 + env NAME=$(BIN) envsubst < manpage.1.md | pandoc --standalone --from markdown --to html -o $(BIN).html + +README.md: manpage.1.md + env NAME=$(BIN) envsubst < manpage.1.md > README.md + .PHONY: clean clean: rm -f $(OBJ) diff --git a/manpage.1.md b/manpage.1.md @@ -0,0 +1,11 @@ +% ${NAME}(1) | General Commands Manual + +NAME +==== + +${NAME} - Poor man's link aggregator + +SYNOPSIS +======== + +`${NAME} [options]`