hints name change and doc/Makefile
rename hints/include/multiw-3.370 to hints/include/misc.370
keep the portable nroff options in sys/unix/Makefile.doc,
and relocate the non-portable bits to a variable defined
in sys/unix/hints/include/misc.370
This assumes that the groff options are compatible between
Linux and macOS implementations of groff.
If that turns out not to be the case, this bit:
ifneq "$(NROFFISGROFF)" "" # It's groff
# add the groff-specific plain text flags
MORE_MAN2TXT_FLAGS += -Tascii -P -cbou
endif
should relocate from sys/unix/hints/include/misc.370
to sys/unix/hints/linux.370 and sys/unix/hints/macOS.370,
immediately following the inclusion of misc.370, and the
appropriate platform-specific groff options can be
adjused in whichever of those appropriately needs it.
Closes #1153
This commit is contained in:
89
sys/unix/hints/include/misc.370
Normal file
89
sys/unix/hints/include/misc.370
Normal file
@@ -0,0 +1,89 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# NetHack 3.7 misc.370 $NHDT-Date: 1668359836 2022/11/13 17:17:16 $ $NHDT-Branch: NetHack-3.7 $
|
||||
#
|
||||
# Further set-up for miscellaneou odds and ends (after compiler.370)
|
||||
#
|
||||
# Included from:
|
||||
# hints/linux.370
|
||||
# hints/macOS.370
|
||||
#
|
||||
|
||||
# This ensures that .moc files are compatible with the version of Qt chosen.
|
||||
#
|
||||
ifdef MAKEFILE_SRC
|
||||
ifdef WANT_WIN_QT
|
||||
# when switching from Qt5 to Qt6 or vice versa, any old .moc files will be
|
||||
# incompatible; get rid of them in case user hasn't run 'make spotless';
|
||||
# object files are incompatable with Qt library, so get rid of them too;
|
||||
# Qt*.h-t are empty timestamp files and at most one should exist
|
||||
QTany_H = Qt*.h-t
|
||||
ifdef WANT_WIN_QT6
|
||||
# Qt 6 builds and runs (with a couple of warnings) but needs more testing
|
||||
QTn_H = Qt6.h-t
|
||||
else
|
||||
# Qt 5 is currently the default version for nethack 3.7.x's Qt interface
|
||||
QTn_H = Qt5.h-t
|
||||
endif
|
||||
$(QTn_H) ::
|
||||
@if test ! -f $@; then ( rm -f $(QTany_H) *.moc qt_*.o; touch $@ ); fi;
|
||||
endif #WANT_WIN_QT
|
||||
endif #MAKFILE_SRC
|
||||
|
||||
ifdef WANT_WIN_TTY
|
||||
USE_CURSESLIB=1
|
||||
endif
|
||||
|
||||
ifdef WANT_WIN_CURSES
|
||||
ifneq "$(USE_CURSESLIB)" "1"
|
||||
USE_CURSESLIB=1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq "$(GIT)" "1"
|
||||
ifndef GITSUBMODULES
|
||||
GITSUBMODULES=1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq "$(git)" "1"
|
||||
ifndef GITSUBMODULES
|
||||
GITSUBMODULES=1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq "$(CPPREGEX)" "1"
|
||||
REGEXOBJ=$(TARGETPFX)cppregex.o
|
||||
ifndef CPLUSPLUS_NEEDED
|
||||
CPLUSPLUS_NEEDED = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq "$(cppregex)" "1"
|
||||
REGEXOBJ=$(TARGETPFX)cppregex.o
|
||||
ifndef CPLUSPLUS_NEEDED
|
||||
CPLUSPLUS_NEEDED = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
#detection of groff
|
||||
NROFFISGROFF := $(shell echo `nroff --version | grep "GNU groff version"`)
|
||||
#$(info NROFFISGROFF=$(NROFFISGROFF))
|
||||
ifneq "$(NROFFISGROFF)" ""
|
||||
# --- version check is not currently needed ---
|
||||
# get the version of groff
|
||||
#GROFFGE123 := $(shell expr `echo $(NROFFISGROFF) | cut -f2 -d.` \>= 23)
|
||||
#$(info GROFFGE123=$(GROFFGE123))
|
||||
#ifeq "$(GROFFGE123)" "1"
|
||||
#NROFF_FLAGS = -W font
|
||||
#endif
|
||||
# ---
|
||||
endif # NROFFISGROFF
|
||||
|
||||
ifneq "$(NROFFISGROFF)" "" # It's groff
|
||||
# add the groff-specific plain text flags
|
||||
MORE_MAN2TXT_FLAGS += -Tascii -P -cbou
|
||||
endif
|
||||
|
||||
#end of hints/include/misc.370
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user