# ---------------------------------------------
# Source
# ---------------------------------------------
# ruby 1.6.8
#RUBY=$(HOME)/install/language/ruby-1.6.8
#LIBS= -L$(RUBY) -lruby -lcrypt 

# ruby 1.8.0
RUBY=$(HOME)/install/language/ruby-1.8.0
LIBS=$(RUBY)/libruby-static.a -lcrypt 

all:
	g++ main.cpp -I$(RUBY) $(LIBS)

# ---------------------------------------------
# Documentation
# ---------------------------------------------
XHTML_ROOT=/usr/local/share/xsl/docbook/xhtml

valid:
	xmllint --valid --noout embed.xml

xhtml:
	xsltproc --catalogs --novalid --nonet $(XHTML_ROOT)/docbook.xsl embed.xml > index.html

upload:
	scp index.html *.png *.cpp *.rb Makefile neoneye@shell.sourceforge.net:/home/groups/m/me/metaeditor/htdocs/embed/.