File: Makefile.install.UNIX

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (100 lines) | stat: -rw-r--r-- 2,827 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Generated automatically from Makefile.install.UNIX.in by configure.
# Install values and rules for UNIX
#
#   Do not use this Makefile directly! It is intended to be called
#   by another Makefile.
#
#   Note, the following parameters must be already defined by
#   the calling Makefile:
#
#	BIN
#	PREFIX
#

INSTALL      = install
INSTBINFLAGS = -m 0755
INSTUIDFLAGS = -m 4755
INSTLIBFLAGS = -m 0755
INSTINCFLAGS = -m 0644
INSTMANFLAGS = -m 0644
INSTCFGFLAGS = -m 0644
INSTDATFLAGS = -m 0644

COPY      = cp
COPYFLAGS = -f

MKDIR      = mkdir
MKDIRFLAGS = -p -m 0755

MAN   = $(BIN).6.bz2
ICON  = $(BIN).xpm
ICON2 = $(BIN)2.xpm
ICON3 = $(BIN)3.xpm
ICON4 = $(BIN)4.xpm
ICON5 = $(BIN)5.xpm

BIN_DIR    = $(PREFIX)/bin
MAN_DIR    = $(PREFIX)/share/man/man6
GAMES_DIR  = $(PREFIX)/games
SHARE_GAMES_DIR = $(PREFIX)/share/games
SHARE_ICONS_DIR = $(PREFIX)/X11R6/include/X11/pixmaps

HR = "-------------------------------------------------------------------------"

install: preinstall install_bin install_data postinstall

install_bin:
	@echo "Installing $(BIN) -> $(GAMES_DIR)"
	@$(MKDIR) $(MKDIRFLAGS) $(GAMES_DIR)
	@$(INSTALL) $(INSTBINFLAGS) $(BIN) $(GAMES_DIR)

install_data:
	@-$(MKDIR) $(MKDIRFLAGS) $(MAN_DIR)
	@$(RM) $(RMFLAGS) $(MAN_DIR)/$(BIN).6
	@$(RM) $(RMFLAGS) $(MAN_DIR)/$(BIN).6.gz
	@echo "Installing $(MAN) -> $(MAN_DIR)"
	@-$(INSTALL) $(INSTMANFLAGS) man/$(MAN) $(MAN_DIR)

	@-$(MKDIR) $(MKDIRFLAGS) $(SHARE_ICONS_DIR)
	@echo "Installing $(ICON) -> $(SHARE_ICONS_DIR)"
	@-$(INSTALL) $(INSTDATFLAGS) icons/$(ICON) $(SHARE_ICONS_DIR)
	@echo "Installing $(ICON2) -> $(SHARE_ICONS_DIR)"
	@-$(INSTALL) $(INSTDATFLAGS) icons/$(ICON2) $(SHARE_ICONS_DIR)
	@echo "Installing $(ICON3) -> $(SHARE_ICONS_DIR)"
	@-$(INSTALL) $(INSTDATFLAGS) icons/$(ICON3) $(SHARE_ICONS_DIR)
	@echo "Installing $(ICON4) -> $(SHARE_ICONS_DIR)"
	@-$(INSTALL) $(INSTDATFLAGS) icons/$(ICON4) $(SHARE_ICONS_DIR)
	@echo "Installing $(ICON5) -> $(SHARE_ICONS_DIR)"
	@-$(INSTALL) $(INSTDATFLAGS) icons/$(ICON5) $(SHARE_ICONS_DIR)

preinstall:
	@echo "Installing \"$(BIN)\"..."

postinstall:
	@echo "Install done."
	@echo $(HR)
	@echo "Program $(BIN) installed in:"
	@echo " "
	@echo "        $(GAMES_DIR)"
	@echo " "
	@echo "Manual $(MAN) installed in:"
	@echo " "
	@echo "        $(MAN_DIR)"
	@echo " "
	@echo "Icons installed in:"
	@echo " "
	@echo "        $(SHARE_ICONS_DIR)"
	@echo " "
	@echo $(HR)
	@echo " "
	@echo "Make sure that you have the latest data files for $(BIN)"
	@echo "installed in $(SHARE_GAMES_DIR)/$(BIN).  You can obtain the"
	@echo "data files from the same location you obtained $(BIN)."
	@echo " "
	@echo "To run this game, type \"$(BIN) &\""
	@echo " "
	@echo "If it runs slow, then disable some graphics options in"
	@echo "options->graphics."
	@echo " "
	@echo "See \"man $(BIN)\" for command line options."
	@echo " "