prefix=@prefix@
exec_prefix=@exec_prefix@
INSTALL=@INSTALL@

INSTALL_OPTS=@INSTALL_OPTS@

install: installdirs
	@files=`find . -mindepth 1 -type f ! -name "*.in" -and ! -name "Makefile"`; \
	for file in $$files; do \
		$(INSTALL) -m 644 $(INSTALL_OPTS) "$$file" $(DESTDIR)$(prefix)/lib/icingaScheduler/"$$file"; \
	done
installdirs:
	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/icingaScheduler
	@dirs=`find . -mindepth 1 -type d`; \
	for dir in $$dirs; do \
		$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/icingaScheduler/"$$dir"; \
	done
