ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/Makefile.in
Revision: 1.10
Committed: Sat Sep 22 14:27:25 2007 UTC (16 years, 7 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +16 -9 lines
Log Message:
split up ermyth into ermyth-modules, libermyth (currently just ermyth-util) and ermyth-core

File Contents

# Content
1 # Makefile.in: This file contains build instructions.
2 #
3 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
4 # 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 # Copyright © 2005 Atheme Development Group.
9 # Rights to this code are documented in doc/pod/license.pod.
10 #
11 # $Id: Makefile.in,v 1.9 2007-08-28 17:08:06 pippijn Exp $
12 #
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 SUBDIRS = modules doc libermyth src #test
26 CLEANDIRS = ${SUBDIRS} po
27
28 .PHONY: dist test
29
30 all: build
31
32 MANIFEST:
33 find . -type f | grep -v CVS | sed -e 's|^\./||' | grep -v "^contrib" > $@
34
35 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 @NOW=$$(date +%s); \
50 for i in $(SUBDIRS); do \
51 echo "[$@] ==> $$i"; \
52 ${MAKE} ${SILENT} -C $$i build || exit; \
53 done; \
54 echo ">>> Built in" $$(expr $$(date +%s) - $$NOW) "seconds"
55
56 test: .build.stamp
57 @for i in ${SUBDIRS}; do \
58 echo "[$@] ==> $$i"; \
59 ${MAKE} ${SILENT} -C $$i $@; \
60 done
61
62 clean: .depend.stamp
63 @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 distclean: .depend.stamp
73 @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 @${RM} -f config.status config.cache config.log config.status.lineno
82
83 maintainer-clean: .depend.stamp
84 @${RM} -rf autom4te.cache
85 @${RM} -f configure aclocal.m4
86 @cd include; \
87 ${RM} -f common/callback.h sysconf.h.in sysconf.h *~ *.orig; \
88 cd ..
89 @for i in $(CLEANDIRS); do \
90 echo "[$@] ==> $$i"; \
91 ${MAKE} ${SILENT} -C $$i $@; \
92 done
93 @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz
94 @${RM} -f config.status config.cache config.log config.status.lineno
95
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 dist: MANIFEST
110 @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 @scp ${DISTNAME}.tar.gz ruth:ermyth.xinutec.org/dist/
119 @${RM} -f ${DISTNAME}.tar.gz
120
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 @${RM} -f ${DISTNAME}.tar.gz
125
126 calcsize:
127 expr $$(echo `find . -name "*.[Ch]"|xargs ls -l|awk '{print $$5}'` | sed -e 's/ / + /g')
128
129 tags:
130 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q include