tizen 2.3.1 release
[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, 2013, 2014 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 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.
30 #
31 install: $(PROJECT_LIBRARY)
32         $(MKINSTALLDIRS) $(DESTDIR)$(libdir)                      \
33                          $(DESTDIR)$(libdir)/pkgconfig            \
34                          $(DESTDIR)$(includedir)/freetype2/config \
35                          $(DESTDIR)$(bindir)                      \
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                  \
41           $(INSTALL_DATA)                           \
42             $$P $(DESTDIR)$(includedir)/freetype2 ; \
43         done
44         -for P in $(CONFIG_H) ; do                         \
45           $(INSTALL_DATA)                                  \
46             $$P $(DESTDIR)$(includedir)/freetype2/config ; \
47         done
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
64
65
66 uninstall:
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
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