1# 2# FreeType 2 installation instructions for Unix systems 3# 4 5 6# Copyright 1996-2018 by 7# David Turner, Robert Wilhelm, and Werner Lemberg. 8# 9# This file is part of the FreeType project, and may only be used, modified, 10# and distributed under the terms of the FreeType project license, 11# LICENSE.TXT. By continuing to use, modify, or distribute this file you 12# indicate that you have read the license and understand and accept it 13# fully. 14 15# If you say 16# 17# make install DESTDIR=/tmp/somewhere/ 18# 19# don't forget the final backslash (this command is mainly for package 20# maintainers). 21 22 23.PHONY: install uninstall check 24 25# Unix installation and deinstallation targets. 26# 27# Note that we remove any data found in `$(includedir)/freetype2' before 28# installing new files to avoid interferences with files installed by 29# previous FreeType versions (which use slightly different locations). 30# 31# We also remove `$(includedir)/ft2build.h' for the same reason. 32# 33# Note that some header files get handled twice for simplicity; a special, 34# configured version overwrites the generic one. 35# 36install: $(PROJECT_LIBRARY) 37 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2 38 -$(DELETE) $(DESTDIR)$(includedir)/ft2build.h 39 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ 40 $(DESTDIR)$(libdir)/pkgconfig \ 41 $(DESTDIR)$(includedir)/freetype2/freetype/config \ 42 $(DESTDIR)$(bindir) \ 43 $(DESTDIR)$(datadir)/aclocal \ 44 $(DESTDIR)$(mandir)/man1 45 $(LIBTOOL) --mode=install $(INSTALL) \ 46 $(PROJECT_LIBRARY) $(DESTDIR)$(libdir) 47 -for P in $(PUBLIC_H) ; do \ 48 $(INSTALL_DATA) \ 49 $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \ 50 done 51 -for P in $(CONFIG_H) ; do \ 52 $(INSTALL_DATA) \ 53 $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \ 54 done 55 $(INSTALL_DATA) $(TOP_DIR)/include/ft2build.h \ 56 $(DESTDIR)$(includedir)/freetype2/ft2build.h 57 $(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \ 58 $(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h 59 $(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h \ 60 $(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h 61 $(INSTALL_DATA) $(OBJ_BUILD)/ftoption.h \ 62 $(DESTDIR)$(includedir)/freetype2/freetype/config/ftoption.h 63 $(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \ 64 $(DESTDIR)$(bindir)/freetype-config 65 $(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \ 66 $(DESTDIR)$(datadir)/aclocal/freetype2.m4 67 $(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc \ 68 $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc 69 $(INSTALL_DATA) $(TOP_DIR)/docs/freetype-config.1 \ 70 $(DESTDIR)$(mandir)/man1/freetype-config.1 71 72 73uninstall: 74 -$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A 75 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2 76 -$(DELETE) $(DESTDIR)$(bindir)/freetype-config 77 -$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4 78 -$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc 79 -$(DELETE) $(DESTDIR)$(mandir)/man1/freetype-config.1 80 81 82check: 83 @echo There is no validation suite for this package. 84 85 86.PHONY: clean_project_unix distclean_project_unix 87 88# Unix cleaning and distclean rules. 89# 90clean_project_unix: 91 -$(LIBTOOL) --mode=clean $(RM) $(OBJECTS_LIST) 92 -$(DELETE) $(CLEAN) 93 94distclean_project_unix: clean_project_unix 95 -$(LIBTOOL) --mode=clean $(RM) $(PROJECT_LIBRARY) 96 -$(DELETE) *.orig *~ core *.core $(DISTCLEAN) 97 98# EOF 99