6
# Copyright 1996-2000, 2002, 2003 by
6
# Copyright 1996-2000, 2002, 2003, 2006 by
7
7
# David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
# This file is part of the FreeType project, and may only be used, modified,
23
23
.PHONY: install uninstall check
25
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'.
26
30
install: $(PROJECT_LIBRARY)
27
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
28
$(DESTDIR)$(libdir)/pkgconfig \
29
$(DESTDIR)$(includedir)/freetype2/freetype/config \
30
$(DESTDIR)$(includedir)/freetype2/freetype/internal \
31
$(DESTDIR)$(includedir)/freetype2/freetype/cache \
31
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
32
$(DESTDIR)$(libdir)/pkgconfig \
33
$(DESTDIR)$(includedir)/freetype2/freetype/config \
34
$(DESTDIR)$(includedir)/freetype2/freetype/cache \
33
36
$(DESTDIR)$(datadir)/aclocal
34
$(LIBTOOL) --mode=install $(INSTALL) \
37
$(LIBTOOL) --mode=install $(INSTALL) \
35
38
$(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
36
39
-for P in $(PUBLIC_H) ; do \
38
41
$$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
40
-for P in $(BASE_H) ; do \
42
$$P $(DESTDIR)$(includedir)/freetype2/freetype/internal ; \
44
43
-for P in $(CONFIG_H) ; do \
46
45
$$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
48
-for P in $(CACHE_H) ; do \
50
$$P $(DESTDIR)$(includedir)/freetype2/freetype/cache ; \
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
52
51
$(INSTALL_DATA) $(BUILD_DIR)/ft2unix.h \
53
52
$(DESTDIR)$(includedir)/ft2build.h
54
$(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \
53
$(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \
55
54
$(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h
55
$(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h \
56
$(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h
56
57
$(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \
57
58
$(DESTDIR)$(bindir)/freetype-config
58
59
$(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \
65
66
-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
66
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/cache/*
67
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/cache
68
67
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/config/*
69
68
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/config
70
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/internal/*
71
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/internal
72
69
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/*
73
70
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype
74
71
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2