pkgsrc/mk/tools/tools.Linux.mk
jlam ef1665c54f Remove conditional expression from tools.*.mk files. Strip handling has
moved to its own file, and we only need to define TOOLS_PLATFORM.strip
if it actually exists on the system.
2005-05-10 19:56:51 +00:00

127 lines
3.7 KiB
Makefile

# $NetBSD: tools.Linux.mk,v 1.11 2005/05/10 19:56:51 jlam Exp $
#
# System-supplied tools for the Linux operating system.
TOOLS_PLATFORM.[?= [ # shell builtin
TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk}
.if exists(/bin/basename)
TOOLS_PLATFORM.basename?= /bin/basename
.elif exists(/usr/bin/basename)
TOOLS_PLATFORM.basename?= /usr/bin/basename
.endif
.if exists(/usr/bin/bison)
TOOLS_PLATFORM.bison?= /usr/bin/bison
.endif
TOOLS_PLATFORM.cat?= /bin/cat
TOOLS_PLATFORM.chgrp?= /bin/chgrp
TOOLS_PLATFORM.chmod?= /bin/chmod
TOOLS_PLATFORM.chown?= /bin/chown
.if exists(/bin/cmp)
TOOLS_PLATFORM.cmp?= /bin/cmp
.elif exists(/usr/bin/cmp)
TOOLS_PLATFORM.cmp?= /usr/bin/cmp
.endif
TOOLS_PLATFORM.cp?= /bin/cp
.if exists(/bin/cut)
TOOLS_PLATFORM.cut?= /bin/cut
.elif exists(/usr/bin/cut)
TOOLS_PLATFORM.cut?= /usr/bin/cut
.endif
TOOLS_PLATFORM.date?= /bin/date
TOOLS_PLATFORM.dirname?= /usr/bin/dirname
TOOLS_PLATFORM.echo?= echo # shell builtin
.if exists(/bin/egrep)
TOOLS_PLATFORM.egrep?= /bin/egrep
.elif exists(/usr/bin/egrep)
TOOLS_PLATFORM.egrep?= /usr/bin/egrep
.endif
TOOLS_PLATFORM.env?= /usr/bin/env
TOOLS_PLATFORM.expr?= /usr/bin/expr
TOOLS_PLATFORM.false?= false # shell builtin
.if exists(/bin/fgrep)
TOOLS_PLATFORM.fgrep?= /bin/fgrep
.elif exists(/usr/bin/fgrep)
TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
.endif
TOOLS_PLATFORM.file?= /usr/bin/file
TOOLS_PLATFORM.find?= /usr/bin/find
TOOLS_PLATFORM.gawk?= /usr/bin/awk
TOOLS_PLATFORM.gm4?= /usr/bin/m4
.if exists(/usr/bin/make)
TOOLS_PLATFORM.gmake?= /usr/bin/make
.endif
.if exists(/bin/grep)
TOOLS_PLATFORM.grep?= /bin/grep
.elif exists(/bin/grep)
TOOLS_PLATFORM.grep?= /usr/bin/grep
.endif
.if exists(/bin/sed)
TOOLS_PLATFORM.gsed?= /bin/sed
.elif exists(/usr/bin/sed)
TOOLS_PLATFORM.gsed?= /usr/bin/sed
.endif
TOOLS_PLATFORM.gtar?= /bin/tar
.if exists(/bin/gunzip)
TOOLS_PLATFORM.gunzip?= /bin/gunzip -f
.elif exists(/usr/bin/gunzip)
TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
.endif
TOOLS_PLATFORM.gzcat?= /bin/zcat
.if exists(/bin/gzip)
TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
.elif exists(/usr/bin/gzip)
TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
.endif
.if exists(/bin/head)
TOOLS_PLATFORM.head?= /bin/head
.elif exists(/usr/bin/head)
TOOLS_PLATFORM.head?= /usr/bin/head
.endif
TOOLS_PLATFORM.hostname?= /bin/hostname
.if exists(/bin/id)
TOOLS_PLATFORM.id?= /bin/id
.elif exists(/usr/bin/id)
TOOLS_PLATFORM.id?= /usr/bin/id
.endif
TOOLS_PLATFORM.install?= /usr/bin/install
TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
TOOLS_PLATFORM.ln?= /bin/ln
TOOLS_PLATFORM.ls?= /bin/ls
TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4}
.if exists(/bin/mail)
TOOLS_PLATFORM.mail?= /bin/mail # RH, Mandrake
.elif exists(/usr/bin/mail)
TOOLS_PLATFORM.mail?= /usr/bin/mail # Debian, Slackware, SuSE
.endif
TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
TOOLS_PLATFORM.mv?= /bin/mv
.if exists(/bin/nice)
TOOLS_PLATFORM.nice?= /bin/nice
.if exists(/usr/bin/nice)
TOOLS_PLATFORM.nice?= /usr/bin/nice
.endif
TOOLS_PLATFORM.patch?= /usr/bin/patch
TOOLS_PLATFORM.pwd?= /bin/pwd
TOOLS_PLATFORM.rm?= /bin/rm
TOOLS_PLATFORM.rmdir?= /bin/rmdir
TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed}
TOOLS_PLATFORM.sh?= /bin/sh
.if exists(/bin/sort)
TOOLS_PLATFORM.sort?= /bin/sort
.elif exists(/usr/bin/sort)
TOOLS_PLATFORM.sort?= /usr/bin/sort
.endif
TOOLS_PLATFORM.strip?= /usr/bin/strip
TOOLS_PLATFORM.tail?= /usr/bin/tail
TOOLS_PLATFORM.tee?= /usr/bin/tee
TOOLS_PLATFORM.test?= test # shell builtin
.if exists(/bin/touch)
TOOLS_PLATFORM.touch?= /bin/touch
.elif exists(/usr/bin/touch)
TOOLS_PLATFORM.touch?= /usr/bin/touch
.endif
TOOLS_PLATFORM.tr?= /usr/bin/tr
TOOLS_PLATFORM.true?= true # shell builtin
TOOLS_PLATFORM.tsort?= /usr/bin/tsort
TOOLS_PLATFORM.wc?= /usr/bin/wc
TOOLS_PLATFORM.xargs?= /usr/bin/xargs