# $Id: Makefile,v 1.7 2005/07/04 02:00:31 zlb Exp $
FILES = makecmap.tex ccmap.sty Makefile t1.tex .cvsignore UGB.sfd UGBK.sfd

default: 	# nothing to do
all:
win32:
dos:
clean:

prefix = /usr/local
install_root = /

prefix_win32 = "C:\\CTeX"
install_root_win32 = /dosc

ccmap.zip: $(FILES)
	@zip -9 -u -y $@ $^

install:
	@echo 1>&2 "Installing in \
		$(install_root)$(prefix)/share/texmf/tex/latex/ccmap ..."
	@mkdir -p $(install_root)$(prefix)/share/texmf/tex/latex/ccmap
	@/bin/cp -pf ccmap.sty makecmap.tex UGB.sfd UGBK.sfd \
		$(install_root)$(prefix)/share/texmf/tex/latex/ccmap

# --- change '\' to '/', strip leading 'drive:' part
prefix_win32_ = `echo $(prefix_win32) | sed -e 's/\\\\/\\//g' -e 's/^.*://g'`
w32localtexmf = $(install_root_win32)$(prefix_win32_)/localtexmf
install_win32:
	@echo 1>&2 "Installing in" "$(w32localtexmf)/tex/latex/ccmap ..."
	@mkdir -p $(w32localtexmf)/tex/latex/ccmap
	@/bin/cp -pf ccmap.sty makecmap.tex UGB.sfd UGBK.sfd \
		$(w32localtexmf)/tex/latex/ccmap/.
