-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.in
85 lines (73 loc) · 2.25 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
####################################################################
# #
# Makefile for PukeBBS series #
# #
# This script is automatically created and configured via script, #
# DONOT modify unless you know what you are doing. #
# #
####################################################################
# basic information
BBSHOME = @BBSHOME@
BBSUID = @BBSUID@
BBSGID = @BBSGID@
# compiler information
OSDEF = @OSDEF@
CC = @CC@
CFLAGS = @CFLAGS@
LIBS = @LIBS@
# installer
INSTALL = @INSTALLER@
# misc. settings
MAKEFLAG = CC=$(CC) BBSHOME="$(BBSHOME)" OS_DEF="$(OSDEF)" CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" INSTALL="$(INSTALL)" BBS_UID=$(BBSUID) BBSGID=$(BBSGID)
DIRS = lib src
DIRS2 = lib src util
# You needn't change the make rule, if you can't understand what are you doing
all:
@echo "== Making main program and relatve src =="
@for x in $(DIRS); \
do \
echo "--> $$x"; \
(cd $$x; make $(MAKEFLAG) all ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
echo "done."
install: all
@echo "== Installing Everything ... =="
@for x in $(DIRS); \
do \
echo "--> $$x"; \
(cd $$x; make install ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
chown -R $(BBSUID):$(BBSGID) $(BBSHOME)
update: all
@echo "== update binary ... =="
@echo "-->src/"
(cd src; make $(MAKEFLAG) update; cd ..)
@echo "<--src/"
clean:
@echo "== cleanning junks, object files, and binaries .. =="
-rm -fr *~ *.o *.bak *.tmp
@for x in $(DIRS); \
do \
echo "--> $$x"; \
(cd $$x; make clean ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
echo "done."
cleanall: clean
@echo "== cleanning all objfile, binaries .. =="
-rm -fr *~ *.o *.bak* *.save *.tmp shm.tmp configure.inf config.log config.cache DEADVE
-rm -fr ./include/chat.h ./include/config.h
-rm -fr ./Makefile ./src/Makefile ./lib/Makefile ./util/game/Makefile ./util/innbbsd/Makefile ./util/stat/Makefile
@for x in $(DIRS2); \
do \
echo "--> $$x"; \
(cd $$x; make cleanall ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
-rm -fr Makefile