From 220f64b3b7412927b4344e940514bdf72a4e7804 Mon Sep 17 00:00:00 2001 From: tomo Date: Thu, 2 Jun 2011 18:04:11 +0000 Subject: [PATCH] (install): Depend on `all'. (install-mac): New target. (/Library/Fonts/HanaMinA.ttf): New target. (/Library/Fonts/HanaMinB.ttf): New target. --- TrueType/Hanazono/Makefile.in | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/TrueType/Hanazono/Makefile.in b/TrueType/Hanazono/Makefile.in index a6aebf1..552a3cd 100644 --- a/TrueType/Hanazono/Makefile.in +++ b/TrueType/Hanazono/Makefile.in @@ -29,12 +29,27 @@ HanaMinA.ttf: unzip -x $(HANAZONO_ZIP_FILE) -install: +install: all $(MKDIR) $(HANAZONO_FONTS_DIR) ( $(TAR) -cf - *.ttf *.txt fonts.dir fonts.alias ) | \ ( cd $(HANAZONO_FONTS_DIR) && $(TAR) -xf - ) +install-mac: /Library/Fonts/HanaMinA.ttf /Library/Fonts/HanaMinB.ttf + $(MKDIR) $(HANAZONO_FONTS_DIR) + ( $(TAR) -cf - *.txt fonts.dir fonts.alias ) | \ + ( cd $(HANAZONO_FONTS_DIR) && $(TAR) -xf - ) + -$(RM) $(HANAZONO_FONTS_DIR)/HanaMinA.ttf $(HANAZONO_FONTS_DIR)/HanaMinB.ttf + ln -s /Library/Fonts/HanaMinA.ttf $(HANAZONO_FONTS_DIR) + ln -s /Library/Fonts/HanaMinB.ttf $(HANAZONO_FONTS_DIR) + +/Library/Fonts/HanaMinA.ttf: all + cp -p HanaMinA.ttf /Library/Fonts/ + +/Library/Fonts/HanaMinB.ttf: all + cp -p HanaMinB.ttf /Library/Fonts/ + + distclean: -$(RM) Makefile -- 1.7.10.4