commit e19965f5259b6a9d2290b2de89a1bfdfdcde80a0 parent 88f485295045a5f6093e26fc636f806ba6685e3a Author: Morel BĂ©renger <berenger.morel@neutralite.org> Date: Tue, 25 Feb 2020 23:43:00 +0100 use make for binary too Diffstat:
M | Makefile | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,4 +1,20 @@ +CC ?= cc +CXX ?= c++ + %.1: %.1.md pandoc -s --to=man $< -o $@ +%.o: %.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ + +merge: merge.o + $(CXX) -o $@ $^ + manpages: merge.1 + +.PHONY: all +all: manpages merge + +.PHONY: clean +clean: + rm -f merge merge.1 *.o