1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/lib/ncurses/panel/Makefile
Rong-En Fan 4409495bc8 - When I introduce wide character enabled ncurses into base, all headers
are installed twice (once in non-widec version, onec in widec version).
  Headers with widec enabled are compatible with non-widec version
  for libraries. However, if you do a repeat build/install, the curses.h
  is always overwritten. The reason is that headers and statics libraries
  are installed with -S option to preserve their mtime if no actual changes,
  which saves time when doing incremental builds. The curses.h is installed
  by non-widec ncurses first, then by widec ncurses. So next time, it happens
  again. You see something like this:

  # pwd
  /usr/src/lib/ncurses
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  install: curses.h -> /usr/include/curses.h
  ===> ncursesw (installincludes)
  install: curses.h -> /usr/include/curses.h
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  install: curses.h -> /usr/include/curses.h
  ===> ncursesw (installincludes)
  install: curses.h -> /usr/include/curses.h

  The solution is to disable installing headers in non-widec version. Now
  you see this:

  # pwd
  /usr/src/lib/ncurses
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  ===> ncursesw (installincludes)
  # make -s installincludes INSTALL="install -v"
  ===> ncurses (installincludes)
  ===> ncursesw (installincludes)

  For form/panel/menu libraries, the headers are the same for both version.
  To be consistent with ncurses, I also disable the installation in non-widec
  version.

Reported by:	des
Reviewed by:	ru
Thanks to:	ru
Approved by:	delphij (mentor)
MFC after:	2 weeks
2007-05-25 02:27:46 +00:00

68 lines
1.1 KiB
Makefile

# $FreeBSD$
.include "${.CURDIR}/../config.mk"
SRCDIR= ${NCURSES_DIR}/panel
LIB= panel${LIB_SUFFIX}
.PATH: ${SRCDIR}
SRCS= \
ncurses_def.h \
p_above.c \
p_below.c \
p_bottom.c \
p_delete.c \
p_hidden.c \
p_hide.c \
p_move.c \
p_new.c \
p_replace.c \
p_show.c \
p_top.c \
p_update.c \
p_user.c \
p_win.c \
panel.c
CLEANFILES= ncurses_def.h
CFLAGS+= -I${SRCDIR}
DPADD= ${LIBNCURSES${LIB_SUFFIX:U}}
LDADD= -lncurses${LIB_SUFFIX}
.if defined(ENABLE_WIDEC)
INCS= panel.h
.endif
# generate MAN
.PATH: ${NCURSES_DIR}/man
MAN= \
panel.3
CLEANFILES+= ${MAN:M*.3}
MLINKS= panel.3 bottom_panel.3 \
panel.3 del_panel.3 \
panel.3 hide_panel.3 \
panel.3 move_panel.3 \
panel.3 new_panel.3 \
panel.3 panel_above.3 \
panel.3 panel_below.3 \
panel.3 panel_hidden.3 \
panel.3 panel_userptr.3 \
panel.3 panel_window.3 \
panel.3 replace_panel.3 \
panel.3 set_panel_userptr.3 \
panel.3 show_panel.3 \
panel.3 top_panel.3 \
panel.3 update_panels.3
.include <bsd.lib.mk>
# Keep the .SUFFIXES line after the include of bsd.lib.mk
.SUFFIXES: .3 .3x
.3x.3:
cat ${.IMPSRC} > ${.TARGET}