
# Note: GNU make automatically re-update included makefiles

AUTOGEN_MAKEFILE = autogen.mk

SOURCES = plugin.cc alxpm.c

PROGRAM = ieme$(EXE)

# Includes the makefile generated by emetool (unless we're going to remove it)
ifneq '$(MAKECMDGOALS)' 'distclean'
include $(AUTOGEN_MAKEFILE)
endif

# Create the makefile
$(AUTOGEN_MAKEFILE):
	../emetool --makefile $(PROGRAM) $(SOURCES) > $@

distclean: clean
	-$(RM) $(AUTOGEN_MAKEFILE)

.PHONY: distclean clean

# vim: syntax=make noet
