update for HEAD-2003050101
[reactos.git] / lib / freetype / builds / unix / install.mk
1 #
2 # FreeType 2 installation instructions for Unix systems
3 #
4
5
6 # Copyright 1996-2000, 2002 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 install: $(PROJECT_LIBRARY)
27         $(MKINSTALLDIRS) $(DESTDIR)$(libdir)                                 \
28                          $(DESTDIR)$(includedir)/freetype2/freetype/config   \
29                          $(DESTDIR)$(includedir)/freetype2/freetype/internal \
30                          $(DESTDIR)$(includedir)/freetype2/freetype/cache    \
31                          $(DESTDIR)$(bindir)                                 \
32                          $(DESTDIR)$(datadir)/aclocal
33         $(LIBTOOL) --mode=install $(INSTALL) \
34                                   $(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
35         -for P in $(PUBLIC_H) ; do                           \
36           $(INSTALL_DATA)                                    \
37             $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
38         done
39         -for P in $(BASE_H) ; do                                      \
40           $(INSTALL_DATA)                                             \
41             $$P $(DESTDIR)$(includedir)/freetype2/freetype/internal ; \
42         done
43         -for P in $(CONFIG_H) ; do                                  \
44           $(INSTALL_DATA)                                           \
45             $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
46         done
47         -for P in $(CACHE_H) ; do                                  \
48           $(INSTALL_DATA)                                          \
49             $$P $(DESTDIR)$(includedir)/freetype2/freetype/cache ; \
50         done
51         $(INSTALL_DATA) $(BUILD)/ft2unix.h $(DESTDIR)$(includedir)/ft2build.h
52         $(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \
53           $(DESTDIR)$(bindir)/freetype-config
54         $(INSTALL_SCRIPT) -m 644 $(BUILD)/freetype2.m4 \
55           $(DESTDIR)$(datadir)/aclocal/freetype2.m4
56
57
58 uninstall:
59         -$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
60         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/cache/*
61         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/cache
62         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/config/*
63         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/config
64         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/internal/*
65         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/internal
66         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/*
67         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype
68         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2
69         -$(DELETE) $(DESTDIR)$(includedir)/ft2build.h
70         -$(DELETE) $(DESTDIR)$(bindir)/freetype-config
71         -$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
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         -$(DELETE) $(OBJ_DIR)/.libs/*
90         -$(DELDIR) $(OBJ_DIR)/.libs
91         -$(DELETE) *.orig *~ core *.core $(DISTCLEAN)
92
93 # EOF