<project-template>
	<project-wizard>
		<_name>Makefile project</_name>
		<_description>Makefile-based project</_description>
		<icon>mkfile-logo.png</icon>
		<category>C</category>
		<order>10</order>
		<required-program>make</required-program>
	</project-wizard>
	
	<page name="options" _label="Project options" _description="Project directory, output file etc.">
		<property type="string" name="Name" _label="Project name:" _description="" default="foobar" mandatory="yes" restriction="filename" summary="yes"/>
		<property type="directory" name="Destination" _label="Project directory:" _description="" default="[+AnjutaProjectDirectory+]/foobar" mandatory="yes" exist="no" summary="yes"/>
		[+INCLUDE "licenses.tpl"+]
	</page>
	
	<content>
		<directory source="mkfile" destination="[+Destination+]">
			<file destination='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].anjuta' source="project.anjuta"/>
			<file destination='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].c' source="src/main.c"/>
			<file destination="Makefile" source="src/Makefile.tpl"/>
		</directory>
	</content>
	
	<action>
		<open file='[+Destination+]/[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].anjuta'/>
	</action>
</project-template>
