equal
deleted
inserted
replaced
1 # -*- Makefile -*- rules common to most X.Org TrueType font modules |
1 # -*- Makefile -*- rules common to most X.Org TrueType font modules |
2 # |
2 # |
3 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
3 # Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
4 # Use is subject to license terms. |
4 # Use is subject to license terms. |
5 # |
5 # |
6 # Permission is hereby granted, free of charge, to any person obtaining a |
6 # Permission is hereby granted, free of charge, to any person obtaining a |
7 # copy of this software and associated documentation files (the |
7 # copy of this software and associated documentation files (the |
8 # "Software"), to deal in the Software without restriction, including |
8 # "Software"), to deal in the Software without restriction, including |
52 TTF_FONT_DIR_DEFAULT = $(TTF_FONT_DIR_SET:yes=$(POUND_SIGN)) |
52 TTF_FONT_DIR_DEFAULT = $(TTF_FONT_DIR_SET:yes=$(POUND_SIGN)) |
53 $(TTF_FONT_DIR_DEFAULT) TTF_FONT_DIR=$(TRUETYPE_FONT_DIR)/$(TTF_SUBDIR) |
53 $(TTF_FONT_DIR_DEFAULT) TTF_FONT_DIR=$(TRUETYPE_FONT_DIR)/$(TTF_SUBDIR) |
54 |
54 |
55 FONT_DEST_DIR=$(PROTODIR)/$(TTF_FONT_DIR) |
55 FONT_DEST_DIR=$(PROTODIR)/$(TTF_FONT_DIR) |
56 |
56 |
57 install_ttf:: $(SOURCE_TARGETS) |
57 install_ttf: $(SOURCE_TARGETS) |
58 -rm -rf $(FONT_DEST_DIR) |
58 -rm -rf $(FONT_DEST_DIR) |
59 mkdir -p $(FONT_DEST_DIR) |
59 mkdir -p $(FONT_DEST_DIR) |
60 cp $(TTF_FONT_FILES:%=$(SOURCE_DIR)/%) $(FONT_DEST_DIR) |
60 cp $(TTF_FONT_FILES:%=$(SOURCE_DIR)/%) $(FONT_DEST_DIR) |
61 LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(MKFONTSCALE) $(FONT_DEST_DIR) |
61 LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(MKFONTSCALE) $(FONT_DEST_DIR) |
62 LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(MKFONTDIR) $(FONT_DEST_DIR) |
62 LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(MKFONTDIR) $(FONT_DEST_DIR) |