aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses/menu/Makefile
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-03-09 09:54:07 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-03-09 09:54:07 +0000
commit557158de6428fe513e55abf0f577e8e5861086c6 (patch)
tree0e56dba5290e625626d4d822ce37e1d6506eec30 /lib/ncurses/menu/Makefile
parent15543aadb309a05769091a5aeb17054bb25f2ecf (diff)
downloadsrc-557158de6428fe513e55abf0f577e8e5861086c6.tar.gz
src-557158de6428fe513e55abf0f577e8e5861086c6.zip
- style.Makefile(9) fix
- first line is $FreeBSD$ - Reorder special variables: DPADD, LPADD, CFLAGS - Use = instead of += for variables that are initially empty - Use space instead of tab after : - Use one tab after = - Use .SUFFIXES for section 3 manual page which simplifies Makefile a lot - Use SHAREDIR instead of /usr/share - Remove SRCDIR in INCS since we set .PATH properly - Use plural in variable name when it stands for more that one source file Reviewed by: ru Approved by: delphij (mentor)
Notes
Notes: svn path=/head/; revision=167358
Diffstat (limited to 'lib/ncurses/menu/Makefile')
-rw-r--r--lib/ncurses/menu/Makefile247
1 files changed, 123 insertions, 124 deletions
diff --git a/lib/ncurses/menu/Makefile b/lib/ncurses/menu/Makefile
index 71819a7e7ad3..29dde8a6bec3 100644
--- a/lib/ncurses/menu/Makefile
+++ b/lib/ncurses/menu/Makefile
@@ -1,138 +1,137 @@
-# Makefile for libmenu
# $FreeBSD$
-.include "${.CURDIR}/../config.mk"
+.include "${.CURDIR}/../config.mk"
-SRCDIR= ${NCURSES_DIR}/menu
+SRCDIR= ${NCURSES_DIR}/menu
-LIB= menu
-DPADD= ${LIBNCURSES}
-LDADD= -lncurses
+LIB= menu
-.PATH: ${SRCDIR}
-SRCS= \
- ncurses_def.h \
- m_attribs.c \
- m_cursor.c \
- m_driver.c \
- m_format.c \
- m_global.c \
- m_hook.c \
- m_item_cur.c \
- m_item_nam.c \
- m_item_new.c \
- m_item_opt.c \
- m_item_top.c \
- m_item_use.c \
- m_item_val.c \
- m_item_vis.c \
- m_items.c \
- m_new.c \
- m_opts.c \
- m_pad.c \
- m_pattern.c \
- m_post.c \
- m_req_name.c \
- m_scale.c \
- m_spacing.c \
- m_sub.c \
- m_userptr.c \
- m_win.c
+.PATH: ${SRCDIR}
+SRCS= \
+ ncurses_def.h \
+ m_attribs.c \
+ m_cursor.c \
+ m_driver.c \
+ m_format.c \
+ m_global.c \
+ m_hook.c \
+ m_item_cur.c \
+ m_item_nam.c \
+ m_item_new.c \
+ m_item_opt.c \
+ m_item_top.c \
+ m_item_use.c \
+ m_item_val.c \
+ m_item_vis.c \
+ m_items.c \
+ m_new.c \
+ m_opts.c \
+ m_pad.c \
+ m_pattern.c \
+ m_post.c \
+ m_req_name.c \
+ m_scale.c \
+ m_spacing.c \
+ m_sub.c \
+ m_userptr.c \
+ m_win.c
+
+CLEANFILES= ncurses_def.h
CFLAGS+= -I${SRCDIR}
-INCS= ${SRCDIR}/menu.h ${SRCDIR}/eti.h
+DPADD= ${LIBNCURSES}
+LDADD= -lncurses
-CLEANFILES+= ncurses_def.h
+INCS= menu.h eti.h
-.PATH: ${NCURSES_DIR}/man
-MANx= \
- menu.3x \
- menu_attributes.3x \
- menu_cursor.3x \
- menu_driver.3x \
- menu_format.3x \
- menu_hook.3x \
- menu_items.3x \
- menu_mark.3x \
- menu_new.3x \
- menu_opts.3x \
- menu_pattern.3x \
- menu_post.3x \
- menu_requestname.3x \
- menu_spacing.3x \
- menu_userptr.3x \
- menu_win.3x \
- mitem_current.3x \
- mitem_name.3x \
- mitem_new.3x \
- mitem_opts.3x \
- mitem_userptr.3x \
- mitem_value.3x \
- mitem_visible.3x
+.PATH: ${NCURSES_DIR}/man
+MAN= \
+ menu.3 \
+ menu_attributes.3 \
+ menu_cursor.3 \
+ menu_driver.3 \
+ menu_format.3 \
+ menu_hook.3 \
+ menu_items.3 \
+ menu_mark.3 \
+ menu_new.3 \
+ menu_opts.3 \
+ menu_pattern.3 \
+ menu_post.3 \
+ menu_requestname.3 \
+ menu_spacing.3 \
+ menu_userptr.3 \
+ menu_win.3 \
+ mitem_current.3 \
+ mitem_name.3 \
+ mitem_new.3 \
+ mitem_opts.3 \
+ mitem_userptr.3 \
+ mitem_value.3 \
+ mitem_visible.3
-# Generate the MAN list from MANx
-.for page in ${MANx}
-CLEANFILES+= ${page:T:S/x$//g}
-MAN+= ${page:T:S/x$//g}
-${page:T:S/x$//g}: ${page}
- cat ${.ALLSRC} > ${.TARGET}
-.endfor
+CLEANFILES+= ${MAN:M*.3}
-MLINKS= menu_attributes.3 menu_back.3 \
- menu_attributes.3 menu_fore.3 \
- menu_attributes.3 menu_grey.3 \
- menu_attributes.3 menu_pad.3 \
- menu_attributes.3 set_menu_back.3 \
- menu_attributes.3 set_menu_fore.3 \
- menu_attributes.3 set_menu_grey.3 \
- menu_attributes.3 set_menu_pad.3 \
- menu_cursor.3 pos_menu_cursor.3 \
- menu_format.3 set_menu_format.3 \
- menu_hook.3 item_init.3 \
- menu_hook.3 item_term.3 \
- menu_hook.3 menu_init.3 \
- menu_hook.3 menu_term.3 \
- menu_hook.3 set_item_init.3 \
- menu_hook.3 set_item_term.3 \
- menu_hook.3 set_menu_init.3 \
- menu_hook.3 set_menu_term.3 \
- menu_items.3 item_count.3 \
- menu_items.3 set_menu_items.3 \
- menu_mark.3 set_menu_mark.3 \
- menu_new.3 free_menu.3 \
- menu_new.3 new_menu.3 \
- menu_opts.3 menu_opts_off.3 \
- menu_opts.3 menu_opts_on.3 \
- menu_opts.3 set_menu_opts.3 \
- menu_pattern.3 set_menu_pattern.3 \
- menu_post.3 post_menu.3 \
- menu_post.3 unpost_menu.3 \
- menu_requestname.3 menu_request_by_name.3 \
- menu_requestname.3 menu_request_name.3 \
- menu_spacing.3 set_menu_spacing.3 \
- menu_userptr.3 set_menu_userptr.3 \
- menu_win.3 menu_sub.3 \
- menu_win.3 scale_menu.3 \
- menu_win.3 set_menu_sub.3 \
- menu_win.3 set_menu_win.3 \
- mitem_current.3 current_item.3 \
- mitem_current.3 item_index.3 \
- mitem_current.3 set_current_item.3 \
- mitem_current.3 set_top_row.3 \
- mitem_current.3 top_row.3 \
- mitem_name.3 item_description.3 \
- mitem_name.3 item_name.3 \
- mitem_new.3 free_item.3 \
- mitem_new.3 new_item.3 \
- mitem_opts.3 item_opts.3 \
- mitem_opts.3 item_opts_off.3 \
- mitem_opts.3 item_opts_on.3 \
- mitem_opts.3 set_item_opts.3 \
- mitem_userptr.3 item_userptr.3 \
- mitem_userptr.3 set_item_userptr.3 \
- mitem_value.3 item_value.3 \
- mitem_value.3 set_item_value.3 \
- mitem_visible.3 item_visible.3
+MLINKS= menu_attributes.3 menu_back.3 \
+ menu_attributes.3 menu_fore.3 \
+ menu_attributes.3 menu_grey.3 \
+ menu_attributes.3 menu_pad.3 \
+ menu_attributes.3 set_menu_back.3 \
+ menu_attributes.3 set_menu_fore.3 \
+ menu_attributes.3 set_menu_grey.3 \
+ menu_attributes.3 set_menu_pad.3 \
+ menu_cursor.3 pos_menu_cursor.3 \
+ menu_format.3 set_menu_format.3 \
+ menu_hook.3 item_init.3 \
+ menu_hook.3 item_term.3 \
+ menu_hook.3 menu_init.3 \
+ menu_hook.3 menu_term.3 \
+ menu_hook.3 set_item_init.3 \
+ menu_hook.3 set_item_term.3 \
+ menu_hook.3 set_menu_init.3 \
+ menu_hook.3 set_menu_term.3 \
+ menu_items.3 item_count.3 \
+ menu_items.3 set_menu_items.3 \
+ menu_mark.3 set_menu_mark.3 \
+ menu_new.3 free_menu.3 \
+ menu_new.3 new_menu.3 \
+ menu_opts.3 menu_opts_off.3 \
+ menu_opts.3 menu_opts_on.3 \
+ menu_opts.3 set_menu_opts.3 \
+ menu_pattern.3 set_menu_pattern.3 \
+ menu_post.3 post_menu.3 \
+ menu_post.3 unpost_menu.3 \
+ menu_requestname.3 menu_request_by_name.3 \
+ menu_requestname.3 menu_request_name.3 \
+ menu_spacing.3 set_menu_spacing.3 \
+ menu_userptr.3 set_menu_userptr.3 \
+ menu_win.3 menu_sub.3 \
+ menu_win.3 scale_menu.3 \
+ menu_win.3 set_menu_sub.3 \
+ menu_win.3 set_menu_win.3 \
+ mitem_current.3 current_item.3 \
+ mitem_current.3 item_index.3 \
+ mitem_current.3 set_current_item.3 \
+ mitem_current.3 set_top_row.3 \
+ mitem_current.3 top_row.3 \
+ mitem_name.3 item_description.3 \
+ mitem_name.3 item_name.3 \
+ mitem_new.3 free_item.3 \
+ mitem_new.3 new_item.3 \
+ mitem_opts.3 item_opts.3 \
+ mitem_opts.3 item_opts_off.3 \
+ mitem_opts.3 item_opts_on.3 \
+ mitem_opts.3 set_item_opts.3 \
+ mitem_userptr.3 item_userptr.3 \
+ mitem_userptr.3 set_item_userptr.3 \
+ mitem_value.3 item_value.3 \
+ mitem_value.3 set_item_value.3 \
+ mitem_visible.3 item_visible.3
.include <bsd.lib.mk>
+
+# Keep the .SUFFIXES line after the include of bsd.lib.mk
+.SUFFIXES: .3 .3x
+.3x.3:
+ cat ${.IMPSRC} > ${.TARGET}