GNOME Bugzilla – Bug 766240
autotools-templates: add src/Makefile.am to empty template
Last modified: 2016-05-11 18:50:52 UTC
The autotools empty template does not include a src/Makefile.am because I thought doing so wouldn't be "empty enough". I've decided that is not true. We need to add a src/Makefile.am to the templates. That probably requires doing two things. The plugin can be found at plugins/autotools-templates/ 1) add plugins/autotools-templates/autotools_templates/resources/src/Makefile.empty This file should be copied into src/Makefile.am It should be pretty clear how to do this based on other code in the __init__.py part of the plugin. The contents of the file should probably just be this single line: -include $(top_srcdir)/git.mk 2) Make sure src/Makefile.am is in the AC_OUTPUT section of 1) add plugins/autotools-templates/autotools_templates/resources/configure.ac 3) Make sure 1) add plugins/autotools-templates/autotools_templates/resources/Makefile.am includes src in the SUBDIRS. Do a make install and then test that you can do something like: ide create-project -t empty foo cd foo ./autogen.sh make and that the whole thing works as expected.
Created attachment 327652 [details] [review] Bug 766240 Incomplete, needs changes
@hergertme : could u pls suugest the changes to be made and what is wrong..
Created attachment 327654 [details] [review] autotools-templates: add src/Makefile.am for empty template This adds an empty src/Makefile.am for the empty autotools template.
most of it turned out to just be removing old special cases i had in there for the empty project. pushed with the couple small changes. thanks for working on this! lets see if we can get you another bug to work on
(In reply to Christian Hergert from comment #4) > most of it turned out to just be removing old special cases i had in there > for the empty project. > > pushed with the couple small changes. thanks for working on this! > > lets see if we can get you another bug to work on Yes sure! Looking forward \m/