ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/Makefile.in
Revision: 1.2
Committed: Sat Jul 21 01:29:07 2007 UTC (16 years, 9 months ago) by pippijn
Branch: MAIN
Changes since 1.1: +3 -3 lines
Log Message:
- moved to new documentation system
- fixed small build error

File Contents

# User Rev Content
1 pippijn 1.1 # Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
2     # Copyright © 2005 Atheme Development Group.
3 pippijn 1.2 # Rights to this code are documented in doc/pod/license.pod.
4 pippijn 1.1 #
5     # This file contains build instructions.
6     #
7 pippijn 1.2 # $Id: Makefile.in,v 1.1 2007-07-19 08:24:46 pippijn Exp $
8 pippijn 1.1 #
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 pippijn 1.2 SUBDIRS = doc help modules src test
22 pippijn 1.1 CLEANDIRS = ${SUBDIRS} po
23    
24     .PHONY: dist test
25    
26     all: build
27    
28     include/sysconf.h:
29     @echo "Hmm...doesn't look like you've run configure..."
30     @echo "Doing so now."
31     @sh configure
32    
33     .build.stamp:
34     @${MAKE} ${SILENT} build
35     @touch .build.stamp
36    
37     .depend.stamp:
38     @${MAKE} ${SILENT} depend
39     @touch .depend.stamp
40    
41     build: include/sysconf.h .depend.stamp
42     @for i in $(SUBDIRS); do \
43     echo "[$@] ==> $$i"; \
44     ${MAKE} ${SILENT} -C $$i build || exit; \
45     done
46    
47     test:
48     @echo "[build] ==> src"
49     @${MAKE} ${SILENT} -C src build
50     @echo "[build] ==> test"
51     @${MAKE} ${SILENT} -C $@ $@
52    
53     clean:
54     @for i in $(CLEANDIRS); do \
55     echo "[$@] ==> $$i"; \
56     ${MAKE} ${SILENT} -C $$i $@; \
57     done
58     -@if [ -f include/sysconf.h ] ; then \
59     echo ">>> To really restart installation, make distclean"; \
60     fi
61     @${RM} -f *~ core atheme.core .build.stamp
62    
63     distclean:
64     @cd include; \
65     ${RM} -f sysconf.h *~ *.orig; \
66     cd ..
67     @for i in $(CLEANDIRS); do \
68     echo "[$@] ==> $$i"; \
69     ${MAKE} ${SILENT} -C $$i $@; \
70     done
71     @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz
72     @${RM} -f config.status config.cache config.log
73    
74     maintainer-clean:
75     @${RM} -rf autom4te.cache
76     @${RM} -f configure aclocal.m4
77     @for i in $(CLEANDIRS); do \
78     echo "[$@] ==> $$i"; \
79     ${MAKE} ${SILENT} -C $$i $@; \
80     done
81    
82     depend:
83     @for i in $(SUBDIRS); do \
84     echo "[$@] ==> $$i"; \
85     touch $$i/.depend; \
86     ${MAKE} ${SILENT} -C $$i $@; \
87     done
88    
89     install: .build.stamp
90     @for i in $(SUBDIRS); do \
91     echo "[$@] ==> $$i"; \
92     ${MAKE} ${SILENT} -C $$i install; \
93     done
94    
95     dist:
96     @tar zcf svs-dist.tar.gz $$(cat MANIFEST)
97     @mkdir ${DISTNAME}
98     @tar zxf svs-dist.tar.gz -C ${DISTNAME}
99     @${RM} -f svs-dist.tar.gz
100     @tar zcf ${DISTNAME}.tar.gz ${DISTNAME}
101     @${RM} -rf ${DISTNAME}
102    
103     upload: dist
104     @scp ${DISTNAME}.tar.gz one09.net:public_html/files/up
105     @${RM} -rf ${DISTNAME}.tar.gz
106    
107     rz-test: dist
108     @scp ${DISTNAME}.tar.gz rzstud:code/
109     @ssh rzstud "cd code && tar zxpf ${DISTNAME}.tar.gz && rm ${DISTNAME}.tar.gz"
110     @${RM} -rf ${DISTNAME}.tar.gz