-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
117 lines (105 loc) · 2.56 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
117
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
moduledir = @moduledir@
confdir = @confdir@
logdir = @logdir@
datarootdir = @datarootdir@
coredir = @coredir@
dbdir = @dbdir@
RM = @RM@
SUBDIRS = libopm src modules docs tools contrib
all: build
update: update-get build
test:
update-get:
-@if [ -f .svn/format ] ; then \
echo "Checking for updates"; \
svn up; \
fi
autoconf:
autoconf
autoheader
${RM} -f autom4te.cache
version:
@echo "Updating version information..."
@sh ./include/version.sh
build: version
-@if [ ! -f include/setup.h ] ; then \
echo "Hmm... doesn't look like you've run configure..."; \
echo "Doing so now."; \
sh configure; \
fi
@for i in $(SUBDIRS); do \
echo "build ==> $$i"; \
cd $$i; \
${MAKE} || exit; cd ..; \
done
strict:
-@if [ ! -f include/setup.h ] ; then \
echo "Hmm... doesn't look like you've run configure..."; \
echo "Doing so now."; \
sh configure; \
fi
@for i in $(SUBDIRS); do \
echo "build ==> $$i"; \
cd $$i; \
${MAKE} strict || exit; cd ..; \
done
install-mkdirs:
-@if test ! -d $(DESTDIR)$(prefix); then \
mkdir $(DESTDIR)$(prefix); \
fi
-@if test ! -d $(DESTDIR)$(bindir); then \
mkdir $(DESTDIR)$(bindir); \
fi
-@if test ! -d $(DESTDIR)$(confdir); then \
mkdir $(DESTDIR)$(confdir); \
fi
-@if test ! -d $(DESTDIR)$(datarootdir); then \
mkdir $(DESTDIR)$(datarootdir); \
fi
-@if test ! -d $(DESTDIR)$(logdir); then \
mkdir $(DESTDIR)$(logdir); \
fi
-@if test -d $(DESTDIR)$(moduledir)-old; then \
rm -rf $(DESTDIR)$(moduledir)-old; \
fi
-@if test -d $(DESTDIR)$(moduledir); then \
mv $(DESTDIR)$(moduledir) $(DESTDIR)$(moduledir)-old; \
fi
-@if test ! -d $(DESTDIR)$(moduledir); then \
mkdir $(DESTDIR)$(moduledir); \
fi
-@if test ! -d $(DESTDIR)$(prefix)/var; then \
mkdir $(DESTDIR)$(prefix)/var; \
fi
-@if test ! -d $(DESTDIR)$(prefix)/var/tmp; then \
mkdir $(DESTDIR)$(prefix)/var/tmp; \
fi
-@if test ! -d $(DESTDIR)$(dbdir); then \
mkdir $(DESTDIR)$(dbdir); \
fi
install: build install-mkdirs
@for i in $(SUBDIRS); do \
echo "install ==> $$i"; \
cd $$i; \
${MAKE} install; \
cd ..; \
done
clean:
@echo "Cleaning up"
@${RM} -f *~ core
@for i in $(SUBDIRS); do \
echo "clean ==> $$i"; \
cd $$i; \
${MAKE} clean; cd ..; \
done
distclean: clean
@${RM} -f *~ *.rej *.orig core* security.core security config.log config.status config.cache Makefile configure.lineno
@${RM} -f include/setup.h include/version.h
@for i in $(SUBDIRS); do \
echo "distclean ==> $$i"; \
cd $$i; \
${MAKE} distclean; cd ..; \
done