ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/Makefile.in
(Generate patch)

Comparing ermyth/Makefile.in (file contents):
Revision 1.1 by pippijn, Thu Jul 19 08:24:46 2007 UTC vs.
Revision 1.10 by pippijn, Sat Sep 22 14:27:25 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines