2 # FreeType 2 installation instructions for Unix systems
6 # Copyright 1996-2000, 2002, 2003, 2006, 2013, 2014 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
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
17 # make install DESTDIR=/tmp/somewhere/
19 # don't forget the final backslash (this command is mainly for package
23 .PHONY: install uninstall check
25 # Unix installation and deinstallation targets.
27 # Note that we remove any data in the `freetype' subdirectory found in
28 # `$(includedir)/freetype2', which was the previous location of the header
29 # files up to version 2.5.0.
31 install: $(PROJECT_LIBRARY)
32 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
33 $(DESTDIR)$(libdir)/pkgconfig \
34 $(DESTDIR)$(includedir)/freetype2/config \
36 $(DESTDIR)$(datadir)/aclocal \
37 $(DESTDIR)$(mandir)/man1
38 $(LIBTOOL) --mode=install $(INSTALL) \
39 $(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
40 -for P in $(PUBLIC_H) ; do \
42 $$P $(DESTDIR)$(includedir)/freetype2 ; \
44 -for P in $(CONFIG_H) ; do \
46 $$P $(DESTDIR)$(includedir)/freetype2/config ; \
48 -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/config/*
49 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/config
50 -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/*
51 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype
52 $(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \
53 $(DESTDIR)$(includedir)/freetype2/config/ftconfig.h
54 $(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h \
55 $(DESTDIR)$(includedir)/freetype2/config/ftmodule.h
56 $(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \
57 $(DESTDIR)$(bindir)/freetype-config
58 $(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \
59 $(DESTDIR)$(datadir)/aclocal/freetype2.m4
60 $(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc \
61 $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
62 $(INSTALL_DATA) $(TOP_DIR)/docs/freetype-config.1 \
63 $(DESTDIR)$(mandir)/man1/freetype-config.1
67 -$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
68 -$(DELETE) $(DESTDIR)$(includedir)/freetype2/config/*
69 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/config
70 -$(DELETE) $(DESTDIR)$(includedir)/freetype2/*
71 -$(DELDIR) $(DESTDIR)$(includedir)/freetype2
72 -$(DELETE) $(DESTDIR)$(bindir)/freetype-config
73 -$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
74 -$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
75 -$(DELETE) $(DESTDIR)$(mandir)/man1/freetype-config.1
79 @echo There is no validation suite for this package.
82 .PHONY: clean_project_unix distclean_project_unix
84 # Unix cleaning and distclean rules.
87 -$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
88 -$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
91 distclean_project_unix: clean_project_unix
92 -$(DELETE) $(PROJECT_LIBRARY)
93 -$(DELETE) $(OBJ_DIR)/.libs/*
94 -$(DELDIR) $(OBJ_DIR)/.libs
95 -$(DELETE) *.orig *~ core *.core $(DISTCLEAN)