#
# Copyright (C) 1999 HERN Labs AB. All Rights Reserved. 
#
# $Id$
#

INSTALLDIR = /boot/home/config/add-ons/Opera/plugins
INSTALLNAME = testplugin.so

def:
	@echo
	@echo "Type 'make simple' to build and install the really simple sample plugin."
	@echo "Type 'make glteapot' to build and install the GLTeaPot sample plugin."
	@echo
	@echo "IMPORTANT: This will create the symlink "
	@echo "$(INSTALLDIR)/$(INSTALLNAME)."
	@echo "Please see to that you don't have any important data in a file in this location."
	@echo

$(INSTALLDIR):
	mkdir -p $(INSTALLDIR)

simple: $(INSTALLDIR)
	(cd examples/simple ; $(MAKE))
	ln -sf $(PWD)/examples/simple/obj.x86/plugin-simple.so $(INSTALLDIR)/$(INSTALLNAME)

glteapot: $(INSTALLDIR)
	(cd examples/glteapot ; $(MAKE))
	ln -sf $(PWD)/examples/glteapot/obj.x86/plugin-glteapot.so $(INSTALLDIR)/$(INSTALLNAME)

clean:
	@(cd examples/glteapot ; $(MAKE) clean)
	@(cd examples/simple ; $(MAKE) clean)
