Browse Source

Enhancement of distclean target

Now when running distclean ALL files generated by the ./bootstrap && ./configure && make are deleted.
Maybe it's not a good idea because it's not the purpose of distclean target...
Yann Weber 7 years ago
parent
commit
b5a6adc3a8

+ 3
- 0
Makefile.am View File

35
 cleandoc:
35
 cleandoc:
36
 	-rm $(dyncode_filename)
36
 	-rm $(dyncode_filename)
37
 
37
 
38
+distclean-local:
39
+	-rm -R Makefile Makefile.in autom4te.cache/ aclocal.m4 install-sh missing py-compile configure
40
+
38
 .PHONY: cleandoc tests doc
41
 .PHONY: cleandoc tests doc

+ 3
- 0
lodel/Makefile.am View File

4
 
4
 
5
 lodeldir=$(pkgpythondir)/
5
 lodeldir=$(pkgpythondir)/
6
 
6
 
7
+distclean-local:
8
+	-rm Makefile Makefile.in
9
+

+ 3
- 0
lodel/auth/Makefile.am View File

1
 auth_PYTHON = *.py
1
 auth_PYTHON = *.py
2
 authdir=$(pkgpythondir)/auth
2
 authdir=$(pkgpythondir)/auth
3
+
4
+distclean-local:
5
+	-rm Makefile Makefile.in

+ 3
- 1
lodel/editorial_model/Makefile.am View File

1
 SUBDIRS=translator
1
 SUBDIRS=translator
2
 
2
 
3
 em_PYTHON=*.py
3
 em_PYTHON=*.py
4
-
5
 emdir=$(pkgpythondir)/editorial_model
4
 emdir=$(pkgpythondir)/editorial_model
5
+
6
+distclean-local:
7
+	-rm Makefile Makefile.in

+ 3
- 1
lodel/editorial_model/translator/Makefile.am View File

1
 translator_PYTHON=*.py
1
 translator_PYTHON=*.py
2
-
3
 translatordir=$(pkgpythondir)/editorial_model/translator
2
 translatordir=$(pkgpythondir)/editorial_model/translator
3
+
4
+distclean-local:
5
+	-rm Makefile Makefile.in

+ 3
- 0
lodel/leapi/Makefile.am View File

2
 
2
 
3
 leapi_PYTHON= *.py
3
 leapi_PYTHON= *.py
4
 leapidir=$(pkgpythondir)/leapi
4
 leapidir=$(pkgpythondir)/leapi
5
+
6
+distclean-local:
7
+	-rm Makefile Makefile.in

+ 3
- 0
lodel/leapi/datahandlers/Makefile.am View File

1
 dh_PYTHON=*.py
1
 dh_PYTHON=*.py
2
 dhdir=$(pkgpythondir)/leapi/datahandlers
2
 dhdir=$(pkgpythondir)/leapi/datahandlers
3
+
4
+distclean-local:
5
+	-rm Makefile Makefile.in

+ 3
- 0
lodel/plugin/Makefile.am View File

1
 plugin_PYTHON=*.py
1
 plugin_PYTHON=*.py
2
 plugindir=$(pkgythondir)/plugin
2
 plugindir=$(pkgythondir)/plugin
3
+
4
+distclean-local:
5
+	-rm Makefile Makefile.in

+ 28
- 1
lodel/plugin/core_scripts.py View File

6
 #@ingroup lodel2_script
6
 #@ingroup lodel2_script
7
 
7
 
8
 
8
 
9
-##@brief Implements lodel_admin.py discover-plugin action
9
+##@brief Implements lodel_admin.py **discover-plugin** action
10
 #@ingroup lodel2_plugins
10
 #@ingroup lodel2_plugins
11
 #@ingroup lodel2_script
11
 #@ingroup lodel2_script
12
 #
12
 #
38
             print("\t- %s(%s) in %s" % (
38
             print("\t- %s(%s) in %s" % (
39
                 pname, pinfos['version'], pinfos['path']))
39
                 pname, pinfos['version'], pinfos['path']))
40
             
40
             
41
+##@brief Implements lodel_admin.py **hooks-list** action
42
+#@ingroup lodel2_script
43
+#@ingroup lodel2_hooks
44
+class ListHooks(lodel_script.LodelScript):
45
+    _action = 'hooks-list'
46
+    _description = 'Generate a list of registered hooks once instance started'
47
+
48
+    @classmethod
49
+    def argparser_config(cls, parser):
50
+        pass
51
+
52
+    @classmethod
53
+    def run(cls, args):
54
+        import loader
55
+        loader.start()
56
+        from lodel.plugin.hooks import LodelHook
57
+        hlist = LodelHook.hook_list()
58
+        print("Registered hooks : ")
59
+        for name in sorted(hlist.keys()):
60
+            print("\t- %s is registered by :" % name)
61
+            for hfun, priority in hlist[name]:
62
+                msg = "\t\t- {modname}.{funname} with priority : {priority}"
63
+                print(msg.format(
64
+                    modname = hfun.__module__,
65
+                    funname = hfun.__name__,
66
+                    priority = priority))
67
+            print("\n")
41
 
68
 

+ 3
- 0
lodel/settings/Makefile.am View File

1
 settings_PYTHON=*.py
1
 settings_PYTHON=*.py
2
 settingsdir=$(pkgpythondir)/settings
2
 settingsdir=$(pkgpythondir)/settings
3
+
4
+distclean-local:
5
+	-rm Makefile Makefile.in

+ 3
- 0
lodel/utils/Makefile.am View File

1
 utils_PYTHON=*.py
1
 utils_PYTHON=*.py
2
 utilsdir=$(pkgpythondir)/utils
2
 utilsdir=$(pkgpythondir)/utils
3
+
4
+distclean-local:
5
+	-rm Makefile Makefile.in

Loading…
Cancel
Save