forked from pzs-ng/pzs-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
62 lines (49 loc) · 1.5 KB
/
Makefile.in
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
prefix=@INSTALLPATH@
CFLAGS=-Wall -g
CC=@CC@
LIBS=@LIBS@
INSTALL=@INSTALL@
all: zs bot @SITEWHO@
@(printf "\n\tProject-ZS-NG is now compiled!\n\tType 'make install' to install it into $(prefix).\n\n")
install: all
$(INSTALL) -m755 -d $(prefix)/bin
cd zipscript/src ; $(MAKE) install
if [ "x@SITEWHO@" != "x" ]; then cd sitewho ; $(MAKE) install; fi
cd sitebot/src ; $(MAKE) install
distclean: clean
rm -f *~ config.cache config.log config.status config.h
rm -rf autom4te.cache/
cd zipscript/src ; $(MAKE) distclean
cd sitebot/src ; $(MAKE) distclean
cd sitewho ; $(MAKE) distclean
cd lib ; $(MAKE) distclean
find . -name Makefile | xargs rm -f
clean:
find . -name '*.o' | xargs rm -f
cd zipscript/src ; $(MAKE) clean
cd sitebot/src ; $(MAKE) clean
cd sitewho ; $(MAKE) clean
cd lib ; $(MAKE) clean
uninstall:
cd zipscript/src ; $(MAKE) uninstall
zs: libs
@(printf "\n\033[1;37mGenerating ng-version: \033[0m")
@(./version.sh)
@(printf "\n\033[1;37mCompiling the zipscript\033[0m\n")
cd zipscript/src ; $(MAKE) all
bot:
@(printf "\n\033[1;37mCompiling the bot binaries\033[0m\n")
cd sitebot/src ; $(MAKE) all
swho:
@(printf "\n\033[1;37mCompiling the sitewho\033[0m\n")
cd sitewho/ ; $(MAKE) all
libs:
@(printf "\n\033[1;37mCompiling the additional libraries\033[0m\n")
cd lib/ ; $(MAKE) all
utils:
@(printf "\n\033[1;37mCompiling the extra utilities\033[0m\n")
cd zipscript/utils ; $(MAKE) all
strip:
cd zipscript/src ; $(MAKE) strip
cd sitewho ; $(MAKE) strip
cd sitebot/src ; $(MAKE) strip