2 # FreeType 2 installation instructions for Unix systems
6 # Copyright 1996-2000, 2002 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.
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 \
32 $(DESTDIR)$(datadir)/aclocal
33 $(LIBTOOL) --mode=install $(INSTALL) \
34 $(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
35 -for P in $(PUBLIC_H) ; do \
37 $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
39 -for P in $(BASE_H) ; do \
41 $$P $(DESTDIR)$(includedir)/freetype2/freetype/internal ; \
43 -for P in $(CONFIG_H) ; do \
45 $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
47 -for P in $(CACHE_H) ; do \
49 $$P $(DESTDIR)$(includedir)/freetype2/freetype/cache ; \
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
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
75 @echo There is no validation suite for this package.
78 .PHONY: clean_project_unix distclean_project_unix
80 # Unix cleaning and distclean rules.
83 -$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
84 -$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
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)