1 |
pippijn |
1.10 |
# Makefile.in: This file contains build instructions. |
2 |
|
|
# |
3 |
pippijn |
1.1 |
# Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
4 |
pippijn |
1.10 |
# Rights to this code are as documented in COPYING. |
5 |
|
|
# |
6 |
|
|
# |
7 |
|
|
# Portions of this file were derived from sources bearing the following license: |
8 |
pippijn |
1.1 |
# Copyright © 2005 Atheme Development Group. |
9 |
pippijn |
1.2 |
# Rights to this code are documented in doc/pod/license.pod. |
10 |
pippijn |
1.1 |
# |
11 |
pippijn |
1.10 |
# $Id: Makefile.in,v 1.9 2007-08-28 17:08:06 pippijn Exp $ |
12 |
pippijn |
1.1 |
# |
13 |
|
|
|
14 |
|
|
RM = @RM@ |
15 |
|
|
SHELL = /bin/sh |
16 |
|
|
DISTNAME = @PACKAGE_NAME@-@PACKAGE_VERSION@ |
17 |
|
|
|
18 |
|
|
# Silent builds |
19 |
|
|
SILENT = @SILENT@ |
20 |
|
|
|
21 |
|
|
# Want absolute paths? |
22 |
|
|
SRCDIR = . |
23 |
|
|
@ABSPATHS@SRCDIR= @SRCDIR@/src |
24 |
|
|
|
25 |
pippijn |
1.10 |
SUBDIRS = modules doc libermyth src #test |
26 |
pippijn |
1.1 |
CLEANDIRS = ${SUBDIRS} po |
27 |
|
|
|
28 |
|
|
.PHONY: dist test |
29 |
|
|
|
30 |
|
|
all: build |
31 |
|
|
|
32 |
pippijn |
1.5 |
MANIFEST: |
33 |
|
|
find . -type f | grep -v CVS | sed -e 's|^\./||' | grep -v "^contrib" > $@ |
34 |
pippijn |
1.4 |
|
35 |
pippijn |
1.1 |
include/sysconf.h: |
36 |
|
|
@echo "Hmm...doesn't look like you've run configure..." |
37 |
|
|
@echo "Doing so now." |
38 |
|
|
@sh configure |
39 |
|
|
|
40 |
|
|
.build.stamp: |
41 |
|
|
@${MAKE} ${SILENT} build |
42 |
|
|
@touch .build.stamp |
43 |
|
|
|
44 |
|
|
.depend.stamp: |
45 |
|
|
@${MAKE} ${SILENT} depend |
46 |
|
|
@touch .depend.stamp |
47 |
|
|
|
48 |
|
|
build: include/sysconf.h .depend.stamp |
49 |
pippijn |
1.7 |
@NOW=$$(date +%s); \ |
50 |
|
|
for i in $(SUBDIRS); do \ |
51 |
pippijn |
1.1 |
echo "[$@] ==> $$i"; \ |
52 |
|
|
${MAKE} ${SILENT} -C $$i build || exit; \ |
53 |
pippijn |
1.7 |
done; \ |
54 |
|
|
echo ">>> Built in" $$(expr $$(date +%s) - $$NOW) "seconds" |
55 |
pippijn |
1.1 |
|
56 |
pippijn |
1.3 |
test: .build.stamp |
57 |
pippijn |
1.10 |
@for i in ${SUBDIRS}; do \ |
58 |
|
|
echo "[$@] ==> $$i"; \ |
59 |
|
|
${MAKE} ${SILENT} -C $$i $@; \ |
60 |
|
|
done |
61 |
pippijn |
1.1 |
|
62 |
pippijn |
1.3 |
clean: .depend.stamp |
63 |
pippijn |
1.1 |
@for i in $(CLEANDIRS); do \ |
64 |
|
|
echo "[$@] ==> $$i"; \ |
65 |
|
|
${MAKE} ${SILENT} -C $$i $@; \ |
66 |
|
|
done |
67 |
|
|
-@if [ -f include/sysconf.h ] ; then \ |
68 |
|
|
echo ">>> To really restart installation, make distclean"; \ |
69 |
|
|
fi |
70 |
|
|
@${RM} -f *~ core atheme.core .build.stamp |
71 |
|
|
|
72 |
pippijn |
1.3 |
distclean: .depend.stamp |
73 |
pippijn |
1.1 |
@cd include; \ |
74 |
|
|
${RM} -f sysconf.h *~ *.orig; \ |
75 |
|
|
cd .. |
76 |
|
|
@for i in $(CLEANDIRS); do \ |
77 |
|
|
echo "[$@] ==> $$i"; \ |
78 |
|
|
${MAKE} ${SILENT} -C $$i $@; \ |
79 |
|
|
done |
80 |
|
|
@${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
81 |
pippijn |
1.6 |
@${RM} -f config.status config.cache config.log config.status.lineno |
82 |
pippijn |
1.1 |
|
83 |
pippijn |
1.3 |
maintainer-clean: .depend.stamp |
84 |
pippijn |
1.1 |
@${RM} -rf autom4te.cache |
85 |
|
|
@${RM} -f configure aclocal.m4 |
86 |
pippijn |
1.3 |
@cd include; \ |
87 |
|
|
${RM} -f common/callback.h sysconf.h.in sysconf.h *~ *.orig; \ |
88 |
|
|
cd .. |
89 |
pippijn |
1.1 |
@for i in $(CLEANDIRS); do \ |
90 |
|
|
echo "[$@] ==> $$i"; \ |
91 |
|
|
${MAKE} ${SILENT} -C $$i $@; \ |
92 |
|
|
done |
93 |
pippijn |
1.3 |
@${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
94 |
pippijn |
1.6 |
@${RM} -f config.status config.cache config.log config.status.lineno |
95 |
pippijn |
1.1 |
|
96 |
|
|
depend: |
97 |
|
|
@for i in $(SUBDIRS); do \ |
98 |
|
|
echo "[$@] ==> $$i"; \ |
99 |
|
|
touch $$i/.depend; \ |
100 |
|
|
${MAKE} ${SILENT} -C $$i $@; \ |
101 |
|
|
done |
102 |
|
|
|
103 |
|
|
install: .build.stamp |
104 |
|
|
@for i in $(SUBDIRS); do \ |
105 |
|
|
echo "[$@] ==> $$i"; \ |
106 |
|
|
${MAKE} ${SILENT} -C $$i install; \ |
107 |
|
|
done |
108 |
|
|
|
109 |
pippijn |
1.4 |
dist: MANIFEST |
110 |
pippijn |
1.1 |
@tar zcf svs-dist.tar.gz $$(cat MANIFEST) |
111 |
|
|
@mkdir ${DISTNAME} |
112 |
|
|
@tar zxf svs-dist.tar.gz -C ${DISTNAME} |
113 |
|
|
@${RM} -f svs-dist.tar.gz |
114 |
|
|
@tar zcf ${DISTNAME}.tar.gz ${DISTNAME} |
115 |
|
|
@${RM} -rf ${DISTNAME} |
116 |
|
|
|
117 |
|
|
upload: dist |
118 |
pippijn |
1.10 |
@scp ${DISTNAME}.tar.gz ruth:ermyth.xinutec.org/dist/ |
119 |
pippijn |
1.4 |
@${RM} -f ${DISTNAME}.tar.gz |
120 |
pippijn |
1.1 |
|
121 |
|
|
rz-test: dist |
122 |
|
|
@scp ${DISTNAME}.tar.gz rzstud:code/ |
123 |
|
|
@ssh rzstud "cd code && tar zxpf ${DISTNAME}.tar.gz && rm ${DISTNAME}.tar.gz" |
124 |
pippijn |
1.4 |
@${RM} -f ${DISTNAME}.tar.gz |
125 |
pippijn |
1.9 |
|
126 |
|
|
calcsize: |
127 |
|
|
expr $$(echo `find . -name "*.[Ch]"|xargs ls -l|awk '{print $$5}'` | sed -e 's/ / + /g') |
128 |
pippijn |
1.10 |
|
129 |
|
|
tags: |
130 |
|
|
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q include |