Makefile.bsd 864 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # $NetBSD: Makefile,v 1.22 2003/10/21 10:01:19 lukem Exp $
  2. # @(#)Makefile 8.1 (Berkeley) 6/11/93
  3. .include <bsd.own.mk>
  4. SUBDIR= boggle mkdict mkindex
  5. MKDICTDIR!= cd $(.CURDIR)/mkdict; ${PRINTOBJDIR}
  6. MKDICT=${MKDICTDIR}/mkdict
  7. MKINDEXDIR!= cd $(.CURDIR)/mkindex; ${PRINTOBJDIR}
  8. MKINDEX=${MKINDEXDIR}/mkindex
  9. WORDS=${NETBSDSRCDIR}/share/dict/web2
  10. DICTFILES=dictionary dictindex
  11. .if ${MKSHARE} != "no"
  12. FILES=${DICTFILES}
  13. FILESDIR=/usr/share/games/boggle
  14. .endif
  15. CLEANFILES+=${DICTFILES}
  16. realall: ${FILES}
  17. ${MKDICT}:
  18. @cd ${.CURDIR}/mkdict && ${MAKE}
  19. ${MKINDEX}:
  20. @cd ${.CURDIR}/mkindex && ${MAKE}
  21. dictionary: ${WORDS} ${MKDICT}
  22. ${_MKTARGET_CREATE}
  23. rm -f ${.TARGET}
  24. ${MKDICT} < ${WORDS} > ${.TARGET}
  25. dictindex: dictionary ${MKINDEX}
  26. ${_MKTARGET_CREATE}
  27. rm -f ${.TARGET}
  28. ${MKINDEX} < dictionary > ${.TARGET}
  29. .include <bsd.prog.mk>
  30. .include <bsd.subdir.mk>