Git init
[framework/graphics/freetype.git] / builds / unix / install.mk
1 #
2 # FreeType 2 installation instructions for Unix systems
3 #
4
5
6 # Copyright 1996-2000, 2002, 2003, 2006 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 no longer install internal headers, and we remove any
28 # `internal' subdirectory found in `$(includedir)/freetype2/freetype'.
29 #
30 install: $(PROJECT_LIBRARY)
31         $(MKINSTALLDIRS) $(DESTDIR)$(libdir)                               \
32                          $(DESTDIR)$(libdir)/pkgconfig                     \
33                          $(DESTDIR)$(includedir)/freetype2/freetype/config \
34                          $(DESTDIR)$(includedir)/freetype2/freetype/cache  \
35                          $(DESTDIR)$(bindir)                               \
36                          $(DESTDIR)$(datadir)/aclocal
37         $(LIBTOOL) --mode=install $(INSTALL)                             \
38                                   $(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
39         -for P in $(PUBLIC_H) ; do                           \
40           $(INSTALL_DATA)                                    \
41             $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
42         done
43         -for P in $(CONFIG_H) ; do                                  \
44           $(INSTALL_DATA)                                           \
45             $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
46         done
47         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/cache/*
48         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/cache
49         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/internal/*
50         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/internal
51         $(INSTALL_DATA) $(BUILD_DIR)/ft2unix.h \
52           $(DESTDIR)$(includedir)/ft2build.h
53         $(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h                        \
54           $(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h
55         $(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h                          \
56           $(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h
57         $(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \
58           $(DESTDIR)$(bindir)/freetype-config
59         $(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \
60           $(DESTDIR)$(datadir)/aclocal/freetype2.m4
61         $(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc \
62           $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
63
64
65 uninstall:
66         -$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
67         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/config/*
68         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/config
69         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/*
70         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype
71         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2
72         -$(DELETE) $(DESTDIR)$(includedir)/ft2build.h
73         -$(DELETE) $(DESTDIR)$(bindir)/freetype-config
74         -$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
75         -$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
76
77
78 check:
79         @echo There is no validation suite for this package.
80
81
82 .PHONY: clean_project_unix distclean_project_unix
83
84 # Unix cleaning and distclean rules.
85 #
86 clean_project_unix:
87         -$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
88         -$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
89                    $(CLEAN)
90
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)
96
97 # EOF