Skip to content

Commit

Permalink
Ensure that the right bin is created
Browse files Browse the repository at this point in the history
  • Loading branch information
ctdk committed Jul 6, 2013
1 parent 637188e commit 9cb8fec
Show file tree
Hide file tree
Showing 38 changed files with 118 additions and 1 deletion.
3 changes: 3 additions & 0 deletions adventure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ data.c: glorkz setup.nx
./setup.nx ${.CURDIR}/glorkz > data.c

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions arithmetic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ MAN= arithmetic.6
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions atc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ HIDEGAME=hidegame
.PATH: ${.CURDIR}/games

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${FILESDIR})
mkdir -p ${FILESDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions backgammon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
SUBDIR= backgammon teachgammon

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions battlestar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ LDADD= -lcurses -ltermcap
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${VARDIR})
mkdir -p ${VARDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions bcd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ MAN= bcd.6
MLINKS= bcd.6 ppt.6

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions bs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ LDADD= -lncurses
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions caesar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ MAN= caesar.6
MLINKS= caesar.6 rot13.6

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions canfield/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
SUBDIR= canfield cfscores

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${VARDIR})
mkdir -p ${VARDIR}
.endif
Expand Down
4 changes: 3 additions & 1 deletion cribbage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ MAN= cribbage.6
HIDEGAME=hidegame

beforeinstall:
beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${FILESDIR})
mkdir -p ${FILESDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions dab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ SRCS=algor.cc board.cc main.cc human.cc box.cc player.cc gamescreen.cc \
ttyscrn.cc random.cc

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions factor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ MLINKS+=factor.6 primes.6
.PATH: ${.CURDIR}/../primes

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions fish/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ MAN= fish.6
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions gomoku/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ LDADD= -lcurses
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions grdc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ DPADD= ${LIBNCURSES}
LDADD= -lncurses

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions hack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ hack.onames.h: makedefs.nx def.objects.h
./makedefs.nx ${.CURDIR}/def.objects.h > hack.onames.h

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${FILESDIR})
mkdir -p ${FILESDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions hangman/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ LDADD= -lcurses
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions hunt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
SUBDIR= hunt huntd

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions larn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ HIDEGAME=hidegame
.PATH: ${.CURDIR}/datfiles

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${FILESDIR})
mkdir -p ${FILESDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions mille/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ MAN= mille.6
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions number/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ PROG= number
MAN= number.6

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions phantasia/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ setup.nx: cross-phantglobs.no setup.no ${LIBM}
${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET}

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${VARDIR}/phantasia)
mkdir -p ${VARDIR}/phantasia
.endif
Expand Down
3 changes: 3 additions & 0 deletions pig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ PROG= pig
MAN= pig.6

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions pom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ DPADD= ${LIBM}
LDADD= -lm

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
5 changes: 5 additions & 0 deletions ppt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
PROG= ppt
NO_MAN= noman

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif

.include <bsd.prog.mk>

5 changes: 5 additions & 0 deletions primes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ NO_MAN= noman
DPADD= ${LIBM}
LDADD= -lm

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif

.include <bsd.prog.mk>
3 changes: 3 additions & 0 deletions quiz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ FILESDIR= ${SHAREDIR}/games/quiz.db
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${FILESDIR})
mkdir -p ${FILESDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions rain/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ DPADD= ${LIBCURSES} ${LIBTERMCAP}
LDADD= -lcurses -ltermcap

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions random/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ MAN= random.6
SRCS= random.c randomize_fd.c

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions robots/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ LDADD= -lcurses
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${VARDIR})
mkdir -p ${VARDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions rogue/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ HIDEGAME=hidegame
MAN= rogue.6

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${VARDIR})
mkdir -p ${VARDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions sail/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ LDADD= -lcurses
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${VARDIR})
mkdir -p ${VARDIR}
.endif
Expand Down
3 changes: 3 additions & 0 deletions snake/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
SUBDIR= snake snscore

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions trek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ LDADD= -lm
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions wargames/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ SCRIPTS=wargames.sh
MAN= wargames.6

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions worm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ LDADD= -lcurses
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions worms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ DPADD= ${LIBCURSES} ${LIBTERMCAP}
LDADD= -lcurses -ltermcap

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${MANDIR}6)
mkdir -p ${MANDIR}6
.endif
Expand Down
3 changes: 3 additions & 0 deletions wump/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ MAN= wump.6
HIDEGAME=hidegame

beforeinstall:
.if !exists(${BINDIR})
mkdir -p ${BINDIR}
.endif
.if !exists(${FILESDIR})
mkdir -p ${FILESDIR}
.endif
Expand Down

0 comments on commit 9cb8fec

Please sign in to comment.