ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/Makefile.in
Revision: 1.4
Committed: Sat Jul 21 13:23:18 2007 UTC (16 years, 9 months ago) by pippijn
Branch: MAIN
Changes since 1.3: +7 -4 lines
Log Message:
- added rcsid to some files
- more documentation tweaks
- made most protocol commands local to phandler.C
- added ircd metadata (inspircd only for now)
- added inspircd swhois support

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.3 2007-07-21 02:00:31 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 = doc modules 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 @for i in $(SUBDIRS); do \
46 echo "[$@] ==> $$i"; \
47 ${MAKE} ${SILENT} -C $$i build || exit; \
48 done
49
50 test: .build.stamp
51 @echo "[build] ==> src"
52 @${MAKE} ${SILENT} -C src build
53 @echo "[build] ==> test"
54 @${MAKE} ${SILENT} -C $@ $@
55
56 clean: .depend.stamp
57 @for i in $(CLEANDIRS); do \
58 echo "[$@] ==> $$i"; \
59 ${MAKE} ${SILENT} -C $$i $@; \
60 done
61 -@if [ -f include/sysconf.h ] ; then \
62 echo ">>> To really restart installation, make distclean"; \
63 fi
64 @${RM} -f *~ core atheme.core .build.stamp
65
66 distclean: .depend.stamp
67 @cd include; \
68 ${RM} -f sysconf.h *~ *.orig; \
69 cd ..
70 @for i in $(CLEANDIRS); do \
71 echo "[$@] ==> $$i"; \
72 ${MAKE} ${SILENT} -C $$i $@; \
73 done
74 @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz
75 @${RM} -f config.status config.cache config.log
76
77 maintainer-clean: .depend.stamp
78 @${RM} -rf autom4te.cache
79 @${RM} -f configure aclocal.m4
80 @cd include; \
81 ${RM} -f common/callback.h sysconf.h.in sysconf.h *~ *.orig; \
82 cd ..
83 @for i in $(CLEANDIRS); do \
84 echo "[$@] ==> $$i"; \
85 ${MAKE} ${SILENT} -C $$i $@; \
86 done
87 @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz
88 @${RM} -f config.status config.cache config.log
89
90 depend:
91 @for i in $(SUBDIRS); do \
92 echo "[$@] ==> $$i"; \
93 touch $$i/.depend; \
94 ${MAKE} ${SILENT} -C $$i $@; \
95 done
96
97 install: .build.stamp
98 @for i in $(SUBDIRS); do \
99 echo "[$@] ==> $$i"; \
100 ${MAKE} ${SILENT} -C $$i install; \
101 done
102
103 dist: MANIFEST
104 @tar zcf svs-dist.tar.gz $$(cat MANIFEST)
105 @mkdir ${DISTNAME}
106 @tar zxf svs-dist.tar.gz -C ${DISTNAME}
107 @${RM} -f svs-dist.tar.gz
108 @tar zcf ${DISTNAME}.tar.gz ${DISTNAME}
109 @${RM} -rf ${DISTNAME}
110
111 upload: dist
112 @scp ${DISTNAME}.tar.gz one09.net:public_html/files/up
113 @${RM} -f ${DISTNAME}.tar.gz
114
115 rz-test: dist
116 @scp ${DISTNAME}.tar.gz rzstud:code/
117 @ssh rzstud "cd code && tar zxpf ${DISTNAME}.tar.gz && rm ${DISTNAME}.tar.gz"
118 @${RM} -f ${DISTNAME}.tar.gz