install.mk 2.72 KB
Newer Older
1
#
Werner Lemberg's avatar
   
Werner Lemberg committed
2
# FreeType 2 installation instructions for Unix systems
3
4
#

Werner Lemberg's avatar
   
Werner Lemberg committed
5
6
7
8
9
10
11
12
13
14
15

# Copyright 1996-2000 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.


Werner Lemberg's avatar
   
Werner Lemberg committed
16
.PHONY: install uninstall check
17

Werner Lemberg's avatar
   
Werner Lemberg committed
18
19
# Unix installation and deinstallation targets.
install: $(PROJECT_LIBRARY)
20
21
22
23
	$(MKINSTALLDIRS) $(libdir)                                 \
                         $(includedir)/freetype2/freetype/config   \
                         $(includedir)/freetype2/freetype/internal \
                         $(includedir)/freetype2/freetype/cache    \
Werner Lemberg's avatar
   
Werner Lemberg committed
24
                         $(bindir)
Werner Lemberg's avatar
   
Werner Lemberg committed
25
	$(LIBTOOL) --mode=install $(INSTALL) $(PROJECT_LIBRARY) $(libdir)
26
27
	-for P in $(PUBLIC_H) ; do                               \
          $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype ; \
Werner Lemberg's avatar
   
Werner Lemberg committed
28
        done
29
30
	-for P in $(BASE_H) ; do                                          \
          $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/internal ; \
Werner Lemberg's avatar
   
Werner Lemberg committed
31
        done
32
33
	-for P in $(CONFIG_H) ; do                                      \
          $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/config ; \
Werner Lemberg's avatar
   
Werner Lemberg committed
34
        done
35
36
	-for P in $(CACHE_H) ; do                                      \
          $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/cache ; \
Werner Lemberg's avatar
   
Werner Lemberg committed
37
        done
38
	$(INSTALL_DATA) $(BUILD)/ft2unix.h $(includedir)/ft2build.h
Werner Lemberg's avatar
   
Werner Lemberg committed
39
40
	$(INSTALL_SCRIPT) -m 755 $(BUILD)/freetype-config \
          $(bindir)/freetype-config
41

Werner Lemberg's avatar
   
Werner Lemberg committed
42
43

uninstall:
Werner Lemberg's avatar
   
Werner Lemberg committed
44
	-$(LIBTOOL) --mode=uninstall $(RM) $(libdir)/$(LIBRARY).$A
45
46
47
48
49
50
51
52
53
	-$(DELETE) $(includedir)/freetype2/freetype/cache/*
	-$(DELDIR) $(includedir)/freetype2/freetype/cache
	-$(DELETE) $(includedir)/freetype2/freetype/config/*
	-$(DELDIR) $(includedir)/freetype2/freetype/config
	-$(DELETE) $(includedir)/freetype2/freetype/internal/*
	-$(DELDIR) $(includedir)/freetype2/freetype/internal
	-$(DELETE) $(includedir)/freetype2/freetype/*
	-$(DELDIR) $(includedir)/freetype2/freetype
	-$(DELDIR) $(includedir)/freetype2
David Turner's avatar
David Turner committed
54
	-$(DELETE) $(includedir)/ft2build.h
55
	-$(DELETE) $(bindir)/freetype-config
Werner Lemberg's avatar
   
Werner Lemberg committed
56
57


Werner Lemberg's avatar
   
Werner Lemberg committed
58
59
60
61
check:
	@echo There is no validation suite for this package.


62
63
.PHONY: clean_project_unix distclean_project_unix

Werner Lemberg's avatar
   
Werner Lemberg committed
64
65
66
67
68
69
70
71
72
73
74
75
# Unix cleaning and distclean rules.
#
clean_project_unix:
	-$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
	-$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
                   $(CLEAN)

distclean_project_unix: clean_project_unix
	-$(DELETE) $(PROJECT_LIBRARY)
	-$(DELETE) $(OBJ_DIR)/.libs/*
	-$(DELDIR) $(OBJ_DIR)/.libs
	-$(DELETE) *.orig *~ core *.core $(DISTCLEAN)
76
77

# EOF