… | |
… | |
2 | # Copyright © 2005 Atheme Development Group. |
2 | # Copyright © 2005 Atheme Development Group. |
3 | # Rights to this code are documented in doc/pod/license.pod. |
3 | # Rights to this code are documented in doc/pod/license.pod. |
4 | # |
4 | # |
5 | # This file contains build instructions. |
5 | # This file contains build instructions. |
6 | # |
6 | # |
7 | # $Id: Makefile.in,v 1.5 2007/07/21 15:01:26 pippijn Exp $ |
7 | # $Id: Makefile.in,v 1.8 2007/07/25 01:05:16 pippijn Exp $ |
8 | # |
8 | # |
9 | |
9 | |
10 | RM = @RM@ |
10 | RM = @RM@ |
11 | SHELL = /bin/sh |
11 | SHELL = /bin/sh |
12 | DISTNAME = @PACKAGE_NAME@-@PACKAGE_VERSION@ |
12 | DISTNAME = @PACKAGE_NAME@-@PACKAGE_VERSION@ |
… | |
… | |
16 | |
16 | |
17 | # Want absolute paths? |
17 | # Want absolute paths? |
18 | SRCDIR = . |
18 | SRCDIR = . |
19 | @ABSPATHS@SRCDIR= @SRCDIR@/src |
19 | @ABSPATHS@SRCDIR= @SRCDIR@/src |
20 | |
20 | |
21 | SUBDIRS = modules src test |
21 | SUBDIRS = modules src test doc |
22 | CLEANDIRS = ${SUBDIRS} po |
22 | CLEANDIRS = ${SUBDIRS} po |
23 | |
23 | |
24 | .PHONY: dist test |
24 | .PHONY: dist test |
25 | |
25 | |
26 | all: build |
26 | all: build |
… | |
… | |
40 | .depend.stamp: |
40 | .depend.stamp: |
41 | @${MAKE} ${SILENT} depend |
41 | @${MAKE} ${SILENT} depend |
42 | @touch .depend.stamp |
42 | @touch .depend.stamp |
43 | |
43 | |
44 | build: include/sysconf.h .depend.stamp |
44 | build: include/sysconf.h .depend.stamp |
|
|
45 | @NOW=$$(date +%s); \ |
45 | @for i in $(SUBDIRS); do \ |
46 | for i in $(SUBDIRS); do \ |
46 | echo "[$@] ==> $$i"; \ |
47 | echo "[$@] ==> $$i"; \ |
47 | ${MAKE} ${SILENT} -C $$i build || exit; \ |
48 | ${MAKE} ${SILENT} -C $$i build || exit; \ |
48 | done |
49 | done; \ |
|
|
50 | echo ">>> Built in" $$(expr $$(date +%s) - $$NOW) "seconds" |
49 | |
51 | |
50 | test: .build.stamp |
52 | test: .build.stamp |
51 | @echo "[build] ==> src" |
53 | @echo "[build] ==> src" |
52 | @${MAKE} ${SILENT} -C src build |
54 | @${MAKE} ${SILENT} -C src build |
53 | @echo "[build] ==> test" |
55 | @echo "[build] ==> test" |
… | |
… | |
70 | @for i in $(CLEANDIRS); do \ |
72 | @for i in $(CLEANDIRS); do \ |
71 | echo "[$@] ==> $$i"; \ |
73 | echo "[$@] ==> $$i"; \ |
72 | ${MAKE} ${SILENT} -C $$i $@; \ |
74 | ${MAKE} ${SILENT} -C $$i $@; \ |
73 | done |
75 | done |
74 | @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
76 | @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
75 | @${RM} -f config.status config.cache config.log |
77 | @${RM} -f config.status config.cache config.log config.status.lineno |
76 | |
78 | |
77 | maintainer-clean: .depend.stamp |
79 | maintainer-clean: .depend.stamp |
78 | @${RM} -rf autom4te.cache |
80 | @${RM} -rf autom4te.cache |
79 | @${RM} -f configure aclocal.m4 |
81 | @${RM} -f configure aclocal.m4 |
80 | @cd include; \ |
82 | @cd include; \ |
… | |
… | |
83 | @for i in $(CLEANDIRS); do \ |
85 | @for i in $(CLEANDIRS); do \ |
84 | echo "[$@] ==> $$i"; \ |
86 | echo "[$@] ==> $$i"; \ |
85 | ${MAKE} ${SILENT} -C $$i $@; \ |
87 | ${MAKE} ${SILENT} -C $$i $@; \ |
86 | done |
88 | done |
87 | @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
89 | @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
88 | @${RM} -f config.status config.cache config.log |
90 | @${RM} -f config.status config.cache config.log config.status.lineno |
89 | |
91 | |
90 | depend: |
92 | depend: |
91 | @for i in $(SUBDIRS); do \ |
93 | @for i in $(SUBDIRS); do \ |
92 | echo "[$@] ==> $$i"; \ |
94 | echo "[$@] ==> $$i"; \ |
93 | touch $$i/.depend; \ |
95 | touch $$i/.depend; \ |