# Build winxed snapshot.

$(WINXED_LANG): ext/winxed/compiler.pir $(PARROT)
	$(MKPATH) runtime/parrot/languages/winxed
	$(PARROT) -o $@ ext/winxed/compiler.pir

winxed.pbc: ext/winxed/driver.pir $(PARROT)
	$(PARROT) -o $@ ext/winxed/driver.pir

$(WINXED) : winxed.pbc $(PBC_TO_EXE)
	$(PBC_TO_EXE) winxed.pbc

$(INSTALLABLEWINXED) : winxed.pbc src/install_config$(O) $(PBC_TO_EXE)
	$(PBC_TO_EXE) winxed.pbc --install

# Build winxed snapshot.

$(WINXED_LANG): ext/winxed/compiler.pir $(PARROT)
	$(MKPATH) runtime/parrot/languages/winxed
	$(PARROT) -o $@ ext/winxed/compiler.pir

winxed.pbc: ext/winxed/driver.pir $(PARROT)
	$(PARROT) -o $@ ext/winxed/driver.pir

$(WINXED) : winxed.pbc $(PBC_TO_EXE) $(WINXED_LANG)
	$(PBC_TO_EXE) winxed.pbc

$(INSTALLABLEWINXED) : winxed.pbc src/install_config$(O) $(PBC_TO_EXE)
	$(PBC_TO_EXE) winxed.pbc --install

Make executable depend on language
Winxed: Make executable depend on language

Without this, attempting to use winxed mid-build (say for PCT) fails
with "winxed: Cannot load language".

Fix suggested by NotFound++
