scdoc2mdoc

A fork of scdoc to output mdoc(7)
git clone git://git.sgregoratto.me/scdoc2mdoc
Log | Files | Refs | README | LICENSE

commit a1bf6922c8d4459b295ffdd0f4a41b086917aca4
parent 2f38d508d64e0f396c89e7117222a8cdd99dc297
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 25 Jan 2018 18:16:50 -0500

Add OUTDIR to Makefile

Diffstat:
MMakefile | 27++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/Makefile b/Makefile @@ -7,21 +7,22 @@ DESTDIR= _INSTDIR=$(DESTDIR)$(PREFIX) BINDIR=$(_INSTDIR)/bin MANDIR=$(_INSTDIR)/share/man +OUTDIR=.build .DEFAULT_GOAL=all OBJECTS=\ - .build/main.o \ - .build/string.o \ - .build/utf8_chsize.o \ - .build/utf8_decode.o \ - .build/utf8_encode.o \ - .build/utf8_fgetch.o \ - .build/utf8_fputch.o \ - .build/utf8_size.o \ - .build/util.o - -.build/%.o: src/%.c - @mkdir -p .build + $(OUTDIR)/main.o \ + $(OUTDIR)/string.o \ + $(OUTDIR)/utf8_chsize.o \ + $(OUTDIR)/utf8_decode.o \ + $(OUTDIR)/utf8_encode.o \ + $(OUTDIR)/utf8_fgetch.o \ + $(OUTDIR)/utf8_fputch.o \ + $(OUTDIR)/utf8_size.o \ + $(OUTDIR)/util.o + +$(OUTDIR)/%.o: src/%.c + @mkdir -p $(OUTDIR) $(CC) -std=c99 -pedantic -c -o $@ $(CFLAGS) $(INCLUDE) $< scdoc: $(OBJECTS) @@ -33,7 +34,7 @@ scdoc.1: scdoc.1.scd scdoc all: scdoc scdoc.1 clean: - rm -rf .build scdoc + rm -rf $(OUTDIR) scdoc install: all install -Dm755 scdoc $(BINDIR)/scdoc