prefix=@prefix@
exec_prefix=@exec_prefix@
LOGDIR=@localstatedir@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
CGIDIR=@sbindir@
HTMLDIR=@datarootdir@

INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@

install: installdirs
	$(INSTALL) -m 644 $(INSTALL_OPTS) "g.pie-min.js" $(DESTDIR)$(prefix)/lib/raphael/g.pie-min.js;
	$(INSTALL) -m 644 $(INSTALL_OPTS) "g.raphael-min.js" $(DESTDIR)$(prefix)/lib/raphael/g.raphael-min.js;
	$(INSTALL) -m 644 $(INSTALL_OPTS) "raphael-min.js" $(DESTDIR)$(prefix)/lib/raphael/raphael-min.js;

installdirs:
	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/raphael/
	@dirs=`find src -mindepth 1 -type d`; \
	for dir in $$dirs; do \
		$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/raphael/"$$dir"; \
	done
