{"action":"created","issue":{"url":"https://api.github.com/repos/m-a-d-n-e-s-s/madness/issues/142","labels_url":"https://api.github.com/repos/m-a-d-n-e-s-s/madness/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/m-a-d-n-e-s-s/madness/issues/142/comments","events_url":"https://api.github.com/repos/m-a-d-n-e-s-s/madness/issues/142/events","html_url":"https://github.com/m-a-d-n-e-s-s/madness/issues/142","id":93019156,"number":142,"title":"make distclean on clean configure not working","user":{"login":"mbanck","id":1670301,"avatar_url":"https://avatars.githubusercontent.com/u/1670301?v=3","gravatar_id":"","url":"https://api.github.com/users/mbanck","html_url":"https://github.com/mbanck","followers_url":"https://api.github.com/users/mbanck/followers","following_url":"https://api.github.com/users/mbanck/following{/other_user}","gists_url":"https://api.github.com/users/mbanck/gists{/gist_id}","starred_url":"https://api.github.com/users/mbanck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbanck/subscriptions","organizations_url":"https://api.github.com/users/mbanck/orgs","repos_url":"https://api.github.com/users/mbanck/repos","events_url":"https://api.github.com/users/mbanck/events{/privacy}","received_events_url":"https://api.github.com/users/mbanck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-04T14:58:34Z","updated_at":"2015-07-04T19:54:37Z","closed_at":null,"body":"Running ./configure && make distclean leads to an dependency error:\r\n\r\n```\r\nmake[2]: Entering directory '/home/mbanck/debian/debichem/madness-0.10/src/examples'\r\nMakefile:833: ../apps/chem/.deps/TDA.Po: No such file or directory\r\nMakefile:834: ../apps/chem/.deps/TDA_XC.Po: No such file or directory\r\nMakefile:835: ../apps/chem/.deps/xcfunctional_ldaonly.Po: No such file or directory\r\nMakefile:836: ../apps/chem/.deps/xcfunctional_libxc.Po: No such file or directory\r\nmake[2]: *** No rule to make target '../apps/chem/.deps/xcfunctional_libxc.Po'.  Stop.\r\nmake[2]: Leaving directory '/home/mbanck/debian/debichem/madness-0.10/src/examples'\r\nMakefile:425: recipe for target 'distclean-recursive' failed\r\nmake[1]: *** [distclean-recursive] Error 1\r\nmake[1]: Leaving directory '/home/mbanck/debian/debichem/madness-0.10/src'\r\nMakefile:401: recipe for target 'distclean-recursive' failed\r\nmake: *** [distclean-recursive] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/m-a-d-n-e-s-s/madness/issues/comments/118545965","html_url":"https://github.com/m-a-d-n-e-s-s/madness/issues/142#issuecomment-118545965","issue_url":"https://api.github.com/repos/m-a-d-n-e-s-s/madness/issues/142","id":118545965,"user":{"login":"mbanck","id":1670301,"avatar_url":"https://avatars.githubusercontent.com/u/1670301?v=3","gravatar_id":"","url":"https://api.github.com/users/mbanck","html_url":"https://github.com/mbanck","followers_url":"https://api.github.com/users/mbanck/followers","following_url":"https://api.github.com/users/mbanck/following{/other_user}","gists_url":"https://api.github.com/users/mbanck/gists{/gist_id}","starred_url":"https://api.github.com/users/mbanck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbanck/subscriptions","organizations_url":"https://api.github.com/users/mbanck/orgs","repos_url":"https://api.github.com/users/mbanck/repos","events_url":"https://api.github.com/users/mbanck/events{/privacy}","received_events_url":"https://api.github.com/users/mbanck/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T19:54:37Z","updated_at":"2015-07-04T19:54:37Z","body":"If I remove the \"[...]SOURCES += ../apps/chem/[...]\" lines from src/examples/Makefile.am (see below for a diff), I can run make distclean fine.\r\n\r\nlibMADchem.a (which includes the ../apps/chem object files) gets linked in anyway as $(LIBCHEM), so this should not be a big problem. I am less clear on the MADNESS_HAS_MADXC stuff, cause there is no ../apps/DFcode directory in the current code, is this legacy or for unpublished/add-on code?\r\n\r\nMy diff is:\r\n\r\n```\r\ndiff --git a/src/examples/Makefile.am b/src/examples/Makefile.am\r\nindex 2b66cea..5ea1b55 100644\r\n--- a/src/examples/Makefile.am\r\n+++ b/src/examples/Makefile.am\r\n@@ -44,16 +44,6 @@ hedft_SOURCES = hedft.cc\r\n h2dft_SOURCES = h2dft.cc\r\n if MADNESS_HAS_LIBXC\r\n hefxc_SOURCES = hefxc.cc  \r\n-hefxc_SOURCES += ../apps/chem/xcfunctional_libxc.cc\r\n-hedft_SOURCES += ../apps/chem/xcfunctional_libxc.cc\r\n-h2dft_SOURCES += ../apps/chem/xcfunctional_libxc.cc\r\n-endif\r\n-if MADNESS_HAS_MADXC\r\n-hedft_SOURCES += ../apps/DFcode/xcfunctional_madxc.cc \r\n-h2dft_SOURCES += ../apps/DFcode/xcfunctional_madxc.cc \r\n-else\r\n-hedft_SOURCES += ../apps/chem/xcfunctional_ldaonly.cc \r\n-h2dft_SOURCES += ../apps/chem/xcfunctional_ldaonly.cc \r\n endif\r\n \r\n sininteg_SOURCES = sininteg.cc\r\n```"}}