This repository has been archived by the owner on Aug 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
116 lines (88 loc) · 2.33 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
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
# $Id: Makefile.in,v 1.32 2005/06/27 20:05:13 bill Exp $
prefix = @prefix@
RM = @RM@
MV = @MV@
CP = @CP@
SUBDIRS = @LIBOPM@ src tools
OBJECTS = ${SOURCES:.c=.o}
all: tcm
build: tcm
install: tcm
@echo "install ==> $(prefix)"
-@if [ ! -x $(prefix) ] ; then \
echo mkdir -p $(prefix) ; \
mkdir -p $(prefix) ; \
fi
-@if [ ! -x $(prefix)/bin ] ; then \
echo mkdir -p $(prefix)/bin ; \
mkdir -p $(prefix)/bin ; \
fi
-@if [ ! -x $(prefix)/etc ] ; then \
echo mkdir -p $(prefix)/etc ; \
mkdir -p $(prefix)/etc ; \
fi
-@if [ ! -x $(prefix)/help ] ; then \
echo mkdir -p $(prefix)/help ; \
mkdir -p $(prefix)/help ; \
fi
-@if [ ! -x $(prefix)/logs ] ; then \
echo mkdir -p $(prefix)/logs ; \
mkdir -p $(prefix)/logs ; \
fi
${MV} -f bin/tcm bin/mkpasswd $(prefix)/bin/
-@if [ ! -e $(prefix)/etc/tcm.motd ] ; then \
echo ${CP} etc/tcm.motd $(prefix)/etc/ ; \
${CP} etc/tcm.motd $(prefix)/etc/ ; \
fi
-@if [ ! -e $(prefix)/etc/example.conf ] ; then \
echo ${CP} etc/example.conf $(prefix)/etc/ ; \
${CP} etc/example.conf $(prefix)/etc/ ; \
fi
-@if [ ! -e $(prefix)/etc/dynamic.hosts ] ; then \
echo ${CP} etc/dynamic.hosts $(prefix)/etc/ ; \
${CP} -f etc/dynamic.hosts $(prefix)/etc/ ; \
fi
${CP} help/help.* help/help $(prefix)/help/
@echo Done
clean:
@echo "clean ==> ."
@${RM} -f DEBUG etc/tcm.pid tcm.core ktrace.out core
@for i in $(SUBDIRS); do \
echo "clean ==> $$i";\
cd $$i;\
${MAKE} clean; cd ..;\
done
-@if [ -f include/setup.h ] ; then \
echo "To really restart installation, make distclean" ; \
fi
distclean:
@echo "distclean ==> ."
${RM} -f Makefile configure.lineno config.status config.cache config.log include/setup.h etc/tcm.pid
${RM} -f DEBUG bin/tcm bin/mkpasswd etc/*.pref logs/*log logs/clone_log_* logs/tcm.log*
${RM} -f ktrace.out tcm.core core
${RM} -rf autoconf/autom4te.cache
@for i in $(SUBDIRS); do \
echo "distclean ==> $$i";\
cd $$i;\
${MAKE} distclean; cd ..;\
done
tcm: include/setup.h
@for i in $(SUBDIRS); do \
echo "build ==> $$i";\
cd $$i && ${MAKE} build || exit; cd ..; \
done
include/setup.h:
sh configure
lint:
@for i in $(SUBDIRS); do \
echo "lint ==> $$i";\
cd $$i;\
${MAKE} lint; cd ..;\
done
depend:
@for i in $(SUBDIRS); do \
echo "depend ==> $$i";\
cd $$i;\
${MAKE} depend; cd ..;\
done
.PHONY: clean distclean all build lint depend install