Try groff on Darwin

This commit is contained in:
Brandon Rhodes 2024-02-19 09:55:57 -05:00
parent 8bdc1ecf5a
commit 320e96a586
1 changed files with 5 additions and 1 deletions

View File

@ -28,10 +28,14 @@ ifndef MOTIFL
MOTIFL = /usr/lib
endif
ROFF = nroff
# For Linux and Apple OS X
# /opt/homebrew is for modern Apple Silicon; the other paths, for older macOS.
UNAME_S = $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
ROFF = groff
PLATI = -I/opt/homebrew/include \
-I/usr/local/opt/openssl@3/include \
-I/opt/X11/include
@ -202,7 +206,7 @@ xephem: $(INCS) $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
xephem.1: xephem.man
nroff -man $? > $@
$(ROFF) -man $? > $@
libs:
cd ../../libastro; make