# -- updatedd: Makefile.in --
#
# Copyright (C) 2002, 2003, 2004, 2005 Philipp Benner
#
# This file is part of UpdateDD - http://updatedd.philipp-benner.de.
#
# UpdateDD is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# any later version.
#
# UpdateDD is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with UpdateDD; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

SHELL	= /bin/sh -e

SUBDIRS = libexception_handle src src/plugins Documentation scripts updatedd-wrapper

define recursive 
	@for i in $(SUBDIRS); do		\
		$(MAKE) -C $$i $@;		\
	done
endef

all: build-stamp
build-stamp:
	@for i in $(SUBDIRS); do		\
		$(MAKE) -C $$i all;		\
	done
	touch build-stamp

install: all
	$(recursive)

uninstall:
	$(recursive)

clean:
	$(recursive)
	$(RM) build-stamp

distclean: clean
	$(recursive)
	$(RM) Makefile
	$(RM) build
	$(RM) config.status
	$(RM) config.log
	$(RM) config.h
	$(RM) version.h

.PHONY: all install uninstall distclean

romfs:
	$(ROMFSINST)  ./src/updatedd /bin/updatedd
#	$(ROMFSINST)  ./src/plugins/changeip.so /lib/changeip.so
#	$(ROMFSINST)  ./src/plugins/dyndns.so /lib/dyndns.so
#	$(ROMFSINST)  ./src/plugins/eurodyndns.so /lib/eurodyndns.so
#	$(ROMFSINST)  ./src/plugins/hn.so /lib/hn.so
#	$(ROMFSINST)  ./src/plugins/noip.so /lib/noip.so
#	$(ROMFSINST)  ./src/plugins/ods.so /lib/ods.so
#	$(ROMFSINST)  ./src/plugins/ovh.so /lib/ovh.so
#	$(ROMFSINST)  ./src/plugins/regfish.so /lib/regfish.so
#	$(ROMFSINST)  ./src/plugins/tzo.so /lib/tzo.so
	
	
	