1 # 2 # FreeType 2 installation instructions for Unix systems 3 # 4 5 6 # Copyright 1996-2015 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 install: $(PROJECT_LIBRARY) 32 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2 33 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ 34 $(DESTDIR)$(libdir)/pkgconfig \ 35 $(DESTDIR)$(includedir)/freetype2/freetype/config \ 36 $(DESTDIR)$(bindir) \ 37 $(DESTDIR)$(datadir)/aclocal \ 38 $(DESTDIR)$(mandir)/man1 39 $(LIBTOOL) --mode=install $(INSTALL) \ 40 $(PROJECT_LIBRARY) $(DESTDIR)$(libdir) 41 -for P in $(PUBLIC_H) ; do \ 42 $(INSTALL_DATA) \ 43 $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \ 44 done 45 -for P in $(CONFIG_H) ; do \ 46 $(INSTALL_DATA) \ 47 $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \ 48 done 49 $(INSTALL_DATA) $(TOP_DIR)/include/ft2build.h \ 50 $(DESTDIR)$(includedir)/freetype2/ft2build.h 51 $(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \ 52 $(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h 53 $(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h \ 54 $(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h 55 $(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \ 56 $(DESTDIR)$(bindir)/freetype-config 57 $(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \ 58 $(DESTDIR)$(datadir)/aclocal/freetype2.m4 59 $(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc \ 60 $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc 61 $(INSTALL_DATA) $(TOP_DIR)/docs/freetype-config.1 \ 62 $(DESTDIR)$(mandir)/man1/freetype-config.1 63 64 65 uninstall: 66 -$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A 67 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2 68 -$(DELETE) $(DESTDIR)$(bindir)/freetype-config 69 -$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4 70 -$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc 71 -$(DELETE) $(DESTDIR)$(mandir)/man1/freetype-config.1 72 73 74 check: 75 @echo There is no validation suite for this package. 76 77 78 .PHONY: clean_project_unix distclean_project_unix 79 80 # Unix cleaning and distclean rules. 81 # 82 clean_project_unix: 83 -$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S) 84 -$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \ 85 $(CLEAN) 86 87 distclean_project_unix: clean_project_unix 88 -$(DELETE) $(PROJECT_LIBRARY) 89 -$(DELDIR) $(OBJ_DIR)/.libs 90 -$(DELETE) *.orig *~ core *.core $(DISTCLEAN) 91 92 # EOF 93