# Special Makefile rules for generating a Makefile.vms.

DISTFILES.extra2 = Rules-vms Makefile.vms.sh Makefile.vms

dist distdir: $(srcdir)/Makefile.vms

# Makefile.vms needs to be redone when LINGUAS has changed. When rebuilding
# it, ensure that we use the updated value of CATALOGS.
$(srcdir)/Makefile.vms: $(srcdir)/Makefile.vms.sh LINGUAS
	$(MAKE) Makefile
	$(MAKE) -f Makefile Makefile.vms-update

Makefile.vms-update:
	$(SHELL) $(srcdir)/Makefile.vms.sh $(DOMAIN) '$(GMOFILES)' > $(srcdir)/Makefile.vms
