top_builddir = ..
top_srcdir = @top_srcdir@
prefix = @prefix@
sysconfdir = @sysconfdir@

SYSCONFDIR=$(DESTDIR)$(sysconfdir)/mlterm

RCFILES = font vfont tfont font-fb aafont vaafont taafont color termcap key xim main
# GEN_RCFILES =

INSTALL=@INSTALL@

all .DEFAULT:
	@echo "no such a target"

$(SYSCONFDIR):
	mkdir -p $(SYSCONFDIR)

install: $(SYSCONFDIR)
	for file in $(RCFILES) ; do $(INSTALL) -m 644 $(top_srcdir)/etc/$${file} $(SYSCONFDIR)/$${file} ; done
	# for file in $(GEN_RCFILES) ; do $(INSTALL) -m 644 $(top_builddir)/etc/$${file} $(SYSCONFDIR)/$${file} ; done

uninstall:
	for file in $(RCFILES) ; do rm -f $(SYSCONFDIR)/$${file} ; done

distclean:
	rm -f Makefile
