Makefile notdir = Python basename / Golang path.Base


Makefile's notdir = Python basename / Go path.Base.

Example:

URL=http://nanda.online-dhamma.net/Tipitaka/Sutta/Khuddaka/Dhammapada/DhP_Story016.htm
UTF8HTML=/tmp/utf8-$(notdir ${URL})

default:
      @go run big5ToUTF8.go -input=$(notdir ${URL}) -output=${UTF8HTML}

In above Makefile,

$(notdir ${URL}) = DhP_Story016.htm
UTF8HTML = /tmp/utf8-DhP_Story016.htm.

Tested on Ubuntu Linux 15.10, GNU make 4.0-8.2.