-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile.am
184 lines (154 loc) · 7.36 KB
/
Makefile.am
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#!@ENV@ make -f
# R E A L M S O F D E S P A I R !
# ___________________________________________________________________________
# // / \\
# [|_____________\ ******** * * ******** * * ******* |]
# [| \\._.// / ********** ** ** ********** ** ** ********* |]
# [| (0...0) \ ********** *** *** ********** *** *** ********* |]
# [| ).:.( / *** **** **** *** *** *** *** *** |]
# [| {o o} \ ********* ********** ********** *** *** *** **** |]
# [| / ' ' \ / ********* *** ** *** ********** *** *** *** **** |]
# [|-'- / \ -`-\ *** *** *** *** *** *** *** *** *** |]
# [| .VxvxV. / ********* *** *** *** *** ********** ********* |]
# [|_____________\ ********** ** ** ** ** ********** ********* |]
# [| / ********* * * * * ******** ******* |]
# \\____________\____________________________________________________________//
# | |
# | --{ [S]imulated [M]edieval [A]dventure Multi[U]ser [G]ame }-- |
# |_____________________________________________________________________|
# | |
# | -*- Makefile -*- |
# |_____________________________________________________________________|
# // \\
# [| SMAUG 2.0 © 2014-2015 Antonio Cao (@burzumishi) |]
# [| |]
# [| AFKMud Copyright 1997-2007 by Roger Libiez (Samson), |]
# [| Levi Beckerson (Whir), Michael Ward (Tarl), Erik Wolfe (Dwip), |]
# [| Cameron Carroll (Cam), Cyberfox, Karangi, Rathian, Raine, |]
# [| Xorith, and Adjani. |]
# [| All Rights Reserved. External contributions from Remcon, Quixadhal, |]
# [| Zarius and many others. |]
# [| |]
# [| SMAUG 1.4 © 1994-1998 Thoric/Altrag/Blodkai/Narn/Haus/Scryn/Rennard |]
# [| Swordbearer/Gorog/Grishnakh/Nivek/Tricops/Fireblade/Edmond/Conran |]
# [| |]
# [| Merc 2.1 Diku Mud improvments © 1992-1993 Michael Chastain, Michael |]
# [| Quan, and Mitchell Tse. Original Diku Mud © 1990-1991 by Sebastian |]
# [| Hammer, Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, Katja |]
# [| Nyboe. Win32 port Nick Gammon. |]
# \\_____________________________________________________________________//
CC = gcc
CPP = cpp
CXX = g++
USER = smaug
GROUP = smaug
ARCH = `getconf LONG_BIT`
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = etc bin src po
EXTRA_DIST = m4/ChangeLog config.rpath m4/ChangeLog autogen.sh data tools \
doc etc src man db README.md LICENSE m4 libtool bin autom4te.cache \
missing compile config.guess config.sub depcomp aclocal.m4 \
Doxyfile.in doc/html po ABOUT-NLS *.m4 TODO smaug-2.0.pc.in
do_subst = sed -e 's,[@]sharedstatedir[@],$(sharedstatedir),g' \
-e 's,[@]localstatedir[@],$(localstatedir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]datarootdir[@],$(datarootdir),g' \
-e 's,[@]localedir[@],$(localedir),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]sbindir[@],$(sbindir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]mandir[@],$(mandir),g' \
-e 's,[@]PERL[@],$(PERL),g' \
-e 's,[@]ENV[@],$(ENV),g' \
-e 's,[@]BASH[@],$(BASH),g' \
-e 's,[@]USER[@],$(USER),g' \
-e 's,[@]GROUP[@],$(GROUP),g' \
-e 's,[@]CC[@],$(CC),g' \
-e 's,[@]CXX[@],$(CXX),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g' \
-e 's,[@]DESCRIPTION[@],$(DESCRIPTION),g'
docdir = $(datarootdir)/doc/@PACKAGE@
doc_DATA = README AUTHORS INSTALL NEWS LICENSE ChangeLog \
doc/*.txt ABOUT-NLS
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
man_MANS = man/smaug.1 man/smaugd.1
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = smaug-2.0.pc
CLEANDEVELFILES = compile configure depcomp src/smaug.h src/*.la ar-lib \
autom4te.cache config.guess config.sub install-sh missing src/.libs \
config.status ltmain.sh depcomp po/*.gmo m4 *.m4 \
src/smaug src/smaug-resolv src/smaug-httpd Doxyfile po/POTFILES po/stamp-po \
smaug-2.0.pc config.lt libtool src/.deps src/*.o src/*.lo \
`find $(srcdir) -iname "Makefile.in"` \
`find $(srcdir) -iname "*.autogen-bak"` \
`find $(srcdir) -iname "*~"`
CLEANBUILDFILES = config.log etc/smaugd.conf etc/init.d/smaugd bin/smaug-monitor \
`find $(srcdir) -iname "stamp-h1"` \
`find $(srcdir) -iname "stamp-po"` \
`find $(srcdir) -iname "Makefile"`
CLEANFILES = $(CLEANBUILDFILES) \
`find $(srcdir) -iname "*~"`
if HAVE_DOXYGEN
all-doc:
@$(DOXYGEN) Doxyfile;
clean-doc:
@rm -rf $(top_builddir)/doc/latex $(top_builddir)/doc/html;
distclean-doc:
@rm -rf $(top_builddir)/doc/latex $(top_builddir)/doc/html;
install-doc: all-doc
@$(mkdir_p) $(DESTDIR)$(docdir); \
cp -rvf doc/html $(DESTDIR)$(docdir);
uninstall-doc:
@rm -rvf $(DESTDIR)$(docdir)/html; \
rmdir $(DESTDIR)$(docdir);
else
all-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be built ***";
clean-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be cleaned ***";
distclean-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be cleaned ***";
install-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be installed ***";
uninstall-doc:
@echo "*** WARNING! Doxygen is not available ***"; \
echo "*** Documentation will not be uninstalled ***";
endif
all-local:
@echo "=== all-local done ==="
clean-local:
@echo "=== clean-local done ==="
distclean-local: clean-local
@echo "=== distclean-local done ==="
devdistclean: distclean-local distclean-doc
@rm -rfv $(CLEANDEVELFILES) $(CLEANBUILDFILES); \
echo "=== distclean-local done ==="
install-data-hook:
@echo "Creating <@PACKAGE@> directory to store log files ..."; \
mkdir -pv $(localstatedir)/log/@PACKAGE@; \
echo "Creating <@PACKAGE@> directories to store lock and run files ..."; \
mkdir -pv $(localstatedir)/lock/@PACKAGE@; \
mkdir -pv $(localstatedir)/run/; \
echo "Installing <@PACKAGE@> Database files ..."; \
mkdir -pv $(sharedstatedir)/@PACKAGE@; \
cp -rvf db/* $(sharedstatedir)/@PACKAGE@; \
echo "Installing <@PACKAGE@> Website files ..."; \
mkdir -pv $(localstatedir)/www/@PACKAGE@; \
cp -rvf www/* $(localstatedir)/www/@PACKAGE@; \
echo "Creating user <$(USER)> and group <$(GROUP)> ..."; \
groupadd $(GROUP) &>/dev/null; \
useradd $(USER) -g $(GROUP) &>/dev/null; \
echo "Setting up <$(prefix)> permissions to <$(USER):$(GROUP)> ..."; \
chown -R $(USER):$(GROUP) $(prefix); \
echo ""; \
echo "<@PACKAGE@> has ben installed to <$(prefix)> directory!"; \
echo "You can execute <$(sysconfdir)/init.d/smaugd start> now!"; \
echo "";