… | |
… | |
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.2 2007/07/21 01:29:07 pippijn Exp $ |
7 | # $Id: Makefile.in,v 1.3 2007/07/21 02:00:31 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 = doc help modules src test |
21 | SUBDIRS = doc modules src test |
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 |
… | |
… | |
42 | @for i in $(SUBDIRS); do \ |
42 | @for i in $(SUBDIRS); do \ |
43 | echo "[$@] ==> $$i"; \ |
43 | echo "[$@] ==> $$i"; \ |
44 | ${MAKE} ${SILENT} -C $$i build || exit; \ |
44 | ${MAKE} ${SILENT} -C $$i build || exit; \ |
45 | done |
45 | done |
46 | |
46 | |
47 | test: |
47 | test: .build.stamp |
48 | @echo "[build] ==> src" |
48 | @echo "[build] ==> src" |
49 | @${MAKE} ${SILENT} -C src build |
49 | @${MAKE} ${SILENT} -C src build |
50 | @echo "[build] ==> test" |
50 | @echo "[build] ==> test" |
51 | @${MAKE} ${SILENT} -C $@ $@ |
51 | @${MAKE} ${SILENT} -C $@ $@ |
52 | |
52 | |
53 | clean: |
53 | clean: .depend.stamp |
54 | @for i in $(CLEANDIRS); do \ |
54 | @for i in $(CLEANDIRS); do \ |
55 | echo "[$@] ==> $$i"; \ |
55 | echo "[$@] ==> $$i"; \ |
56 | ${MAKE} ${SILENT} -C $$i $@; \ |
56 | ${MAKE} ${SILENT} -C $$i $@; \ |
57 | done |
57 | done |
58 | -@if [ -f include/sysconf.h ] ; then \ |
58 | -@if [ -f include/sysconf.h ] ; then \ |
59 | echo ">>> To really restart installation, make distclean"; \ |
59 | echo ">>> To really restart installation, make distclean"; \ |
60 | fi |
60 | fi |
61 | @${RM} -f *~ core atheme.core .build.stamp |
61 | @${RM} -f *~ core atheme.core .build.stamp |
62 | |
62 | |
63 | distclean: |
63 | distclean: .depend.stamp |
64 | @cd include; \ |
64 | @cd include; \ |
65 | ${RM} -f sysconf.h *~ *.orig; \ |
65 | ${RM} -f sysconf.h *~ *.orig; \ |
66 | cd .. |
66 | cd .. |
67 | @for i in $(CLEANDIRS); do \ |
67 | @for i in $(CLEANDIRS); do \ |
68 | echo "[$@] ==> $$i"; \ |
68 | echo "[$@] ==> $$i"; \ |
69 | ${MAKE} ${SILENT} -C $$i $@; \ |
69 | ${MAKE} ${SILENT} -C $$i $@; \ |
70 | done |
70 | done |
71 | @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
71 | @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
72 | @${RM} -f config.status config.cache config.log |
72 | @${RM} -f config.status config.cache config.log |
73 | |
73 | |
74 | maintainer-clean: |
74 | maintainer-clean: .depend.stamp |
75 | @${RM} -rf autom4te.cache |
75 | @${RM} -rf autom4te.cache |
76 | @${RM} -f configure aclocal.m4 |
76 | @${RM} -f configure aclocal.m4 |
|
|
77 | @cd include; \ |
|
|
78 | ${RM} -f common/callback.h sysconf.h.in sysconf.h *~ *.orig; \ |
|
|
79 | cd .. |
77 | @for i in $(CLEANDIRS); do \ |
80 | @for i in $(CLEANDIRS); do \ |
78 | echo "[$@] ==> $$i"; \ |
81 | echo "[$@] ==> $$i"; \ |
79 | ${MAKE} ${SILENT} -C $$i $@; \ |
82 | ${MAKE} ${SILENT} -C $$i $@; \ |
80 | done |
83 | done |
|
|
84 | @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz |
|
|
85 | @${RM} -f config.status config.cache config.log |
81 | |
86 | |
82 | depend: |
87 | depend: |
83 | @for i in $(SUBDIRS); do \ |
88 | @for i in $(SUBDIRS); do \ |
84 | echo "[$@] ==> $$i"; \ |
89 | echo "[$@] ==> $$i"; \ |
85 | touch $$i/.depend; \ |
90 | touch $$i/.depend; \ |