ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/Makefile.in
Revision: 1.9
Committed: Tue Aug 28 17:08:06 2007 UTC (16 years, 8 months ago) by pippijn
Branch: MAIN
Changes since 1.8: +5 -2 lines
Log Message:
- changed name
- updated the example config to the new system
- added more documentation
- enhanced documentation generators
- added a link to the pdf to the website
- added an RSS feed generator
- transitioned hooks to c++ callbacks
- did various merges with upstream along the way
- added const where appropriate
- removed the old block allocator
- fixed most memory leaks
- transitioned some dictionaries to std::map
- transitioned some lists to std::vector
- made some free functions members where appropriate
- renamed string to dynstr and added a static string ststr
- use NOW instead of time (NULL) if possible
- completely reworked database backends, crypto handlers and protocol handlers
  to use an object factory
- removed the old module system. ermyth does not do any dynamic loading anymore
- fixed most of the build system
- reworked how protocol commands work

File Contents

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