2 # FreeType 2 installation instructions for Unix systems
6 # Copyright 1996-2000, 2002, 2003, 2006 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 no longer install internal headers, and we remove any
28 # `internal' subdirectory found in `$(includedir)/freetype2/freetype'.
30 install: $(PROJECT_LIBRARY
)
31 $(MKINSTALLDIRS
) $(DESTDIR
)$(libdir) \
32 $(DESTDIR
)$(libdir)/pkgconfig \
33 $(DESTDIR
)$(includedir)/freetype2
/freetype
/config \
34 $(DESTDIR
)$(includedir)/freetype2
/freetype
/cache \
36 $(DESTDIR
)$(datadir)/aclocal
37 $(LIBTOOL
) --mode
=install $(INSTALL
) \
38 $(PROJECT_LIBRARY
) $(DESTDIR
)$(libdir)
39 -for P in
$(PUBLIC_H
) ; do \
41 $$P $(DESTDIR
)$(includedir)/freetype2
/freetype
; \
43 -for P in
$(CONFIG_H
) ; do \
45 $$P $(DESTDIR
)$(includedir)/freetype2
/freetype
/config
; \
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
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
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
)