summaryrefslogtreecommitdiffstats
path: root/lib/ncurses/panel
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-03-09 09:54:07 +0000
committerrafan <rafan@FreeBSD.org>2007-03-09 09:54:07 +0000
commit00dd163071b6b6660dc2a632ff2620584492dc4e (patch)
tree0e56dba5290e625626d4d822ce37e1d6506eec30 /lib/ncurses/panel
parent55ca7cf75c0d019082a4e44c3ec32a732f907846 (diff)
downloadFreeBSD-src-00dd163071b6b6660dc2a632ff2620584492dc4e.zip
FreeBSD-src-00dd163071b6b6660dc2a632ff2620584492dc4e.tar.gz
- 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)
Diffstat (limited to 'lib/ncurses/panel')
-rw-r--r--lib/ncurses/panel/Makefile101
1 files changed, 50 insertions, 51 deletions
diff --git a/lib/ncurses/panel/Makefile b/lib/ncurses/panel/Makefile
index 977215a..c47ad62 100644
--- a/lib/ncurses/panel/Makefile
+++ b/lib/ncurses/panel/Makefile
@@ -1,66 +1,65 @@
-# Makefile for libpanel
# $FreeBSD$
-.include "${.CURDIR}/../config.mk"
+.include "${.CURDIR}/../config.mk"
-SRCDIR= ${NCURSES_DIR}/panel
+SRCDIR= ${NCURSES_DIR}/panel
-LIB= panel
-DPADD= ${LIBNCURSES}
-LDADD= -lncurses
+LIB= panel
-.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
+.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}
-INCS= ${SRCDIR}/panel.h
+DPADD= ${LIBNCURSES}
+LDADD= -lncurses
-CLEANFILES+= ncurses_def.h
+INCS= panel.h
# generate MAN
-.PATH: ${NCURSES_DIR}/man
-MANx= \
- panel.3x
+.PATH: ${NCURSES_DIR}/man
+MAN= \
+ panel.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= 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
+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}
OpenPOWER on IntegriCloud