# Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team # Copyright © 2005 Atheme Development Group. # Rights to this code are documented in doc/pod/license.pod. # # This file contains build instructions. # # $Id: Makefile.in,v 1.7 2007/07/25 00:03:21 pippijn Exp $ # RM = @RM@ SHELL = /bin/sh DISTNAME = @PACKAGE_NAME@-@PACKAGE_VERSION@ # Silent builds SILENT = @SILENT@ # Want absolute paths? SRCDIR = . @ABSPATHS@SRCDIR= @SRCDIR@/src SUBDIRS = modules src test CLEANDIRS = ${SUBDIRS} po .PHONY: dist test all: build MANIFEST: find . -type f | grep -v CVS | sed -e 's|^\./||' | grep -v "^contrib" > $@ include/sysconf.h: @echo "Hmm...doesn't look like you've run configure..." @echo "Doing so now." @sh configure .build.stamp: @${MAKE} ${SILENT} build @touch .build.stamp .depend.stamp: @${MAKE} ${SILENT} depend @touch .depend.stamp build: include/sysconf.h .depend.stamp @NOW=$$(date +%s); \ for i in $(SUBDIRS); do \ echo "[$@] ==> $$i"; \ ${MAKE} ${SILENT} -C $$i build || exit; \ done; \ echo ">>> Built in" $$(expr $$(date +%s) - $$NOW) "seconds" test: .build.stamp @echo "[build] ==> src" @${MAKE} ${SILENT} -C src build @echo "[build] ==> test" @${MAKE} ${SILENT} -C $@ $@ clean: .depend.stamp @for i in $(CLEANDIRS); do \ echo "[$@] ==> $$i"; \ ${MAKE} ${SILENT} -C $$i $@; \ done -@if [ -f include/sysconf.h ] ; then \ echo ">>> To really restart installation, make distclean"; \ fi @${RM} -f *~ core atheme.core .build.stamp distclean: .depend.stamp @cd include; \ ${RM} -f sysconf.h *~ *.orig; \ cd .. @for i in $(CLEANDIRS); do \ echo "[$@] ==> $$i"; \ ${MAKE} ${SILENT} -C $$i $@; \ done @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz @${RM} -f config.status config.cache config.log config.status.lineno maintainer-clean: .depend.stamp @${RM} -rf autom4te.cache @${RM} -f configure aclocal.m4 @cd include; \ ${RM} -f common/callback.h sysconf.h.in sysconf.h *~ *.orig; \ cd .. @for i in $(CLEANDIRS); do \ echo "[$@] ==> $$i"; \ ${MAKE} ${SILENT} -C $$i $@; \ done @${RM} -f Makefile *~ *.orig core atheme.core .depend.stamp svs-dist.tgz @${RM} -f config.status config.cache config.log config.status.lineno depend: @for i in $(SUBDIRS); do \ echo "[$@] ==> $$i"; \ touch $$i/.depend; \ ${MAKE} ${SILENT} -C $$i $@; \ done install: .build.stamp @for i in $(SUBDIRS); do \ echo "[$@] ==> $$i"; \ ${MAKE} ${SILENT} -C $$i install; \ done dist: MANIFEST @tar zcf svs-dist.tar.gz $$(cat MANIFEST) @mkdir ${DISTNAME} @tar zxf svs-dist.tar.gz -C ${DISTNAME} @${RM} -f svs-dist.tar.gz @tar zcf ${DISTNAME}.tar.gz ${DISTNAME} @${RM} -rf ${DISTNAME} upload: dist @scp ${DISTNAME}.tar.gz ruth:ermyth.schmorp.de/dist/ @${RM} -f ${DISTNAME}.tar.gz rz-test: dist @scp ${DISTNAME}.tar.gz rzstud:code/ @ssh rzstud "cd code && tar zxpf ${DISTNAME}.tar.gz && rm ${DISTNAME}.tar.gz" @${RM} -f ${DISTNAME}.tar.gz