return %s
""" % descriptorlist)
-file.close()
\ No newline at end of file
+file.close()
+
+makefile = open(pluginpath + "/Makefile.am", "w")
+makefile.write("""installdir = $(LIBDIR)/enigma2/python/Plugins/%s/%s
+
+install_PYTHON = \\
+ __init__.py \\
+ plugin.py
+""" % (category, internalname))
+makefile.close()