top_builddir = ../..
top_srcdir = $(top_builddir)
srcdir = .
javadir = $(prefix)/share/java

include $(top_srcdir)/makes/var.mk

# NOTE:	We use current directory instead of $(srcdir) for the script
#	to be installed, because the script will be generated by configure.
SCRIPTS= gfront
JAR= gfront.jar

include $(top_srcdir)/makes/script.mk

install:
	@$(MKDIR_P) $(DESTDIR)$(javadir)
	@for i in -- $(JAR); do \
		case $$i in --) continue;; esac; \
		echo \
		$(INSTALL_DATA) $(srcdir)/$${i} $(DESTDIR)$(javadir)/$${i}; \
		$(INSTALL_DATA) $(srcdir)/$${i} $(DESTDIR)$(javadir)/$${i}; \
	done

distclean:
	-rm -f $(SCRIPTS)
