[devhelp/wip/swilmet/various-code-improvements] gedit plugin: cleanup and simplify Makefile.am



commit 63460f468f29039b4a8347b1d294c7b2452170c3
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 13 12:39:27 2015 +0100

    gedit plugin: cleanup and simplify Makefile.am
    
    - Make the "code" clearer by using simpler constructs. With simpler
      constructs, it's easier to say "this code does the right thing".
    
    - Remove DISTCLEANFILES, it's redundant with CLEANFILES. When running
      'make distclean', the files are correctly removed.
    
    - Do not distribute generated files in tarballs, only
      devhelp.desktop.in.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709658

 misc/gedit-plugin/Makefile.am |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/misc/gedit-plugin/Makefile.am b/misc/gedit-plugin/Makefile.am
index 4afb528..de5c5fb 100644
--- a/misc/gedit-plugin/Makefile.am
+++ b/misc/gedit-plugin/Makefile.am
@@ -1,14 +1,13 @@
 @INTLTOOL_DESKTOP_RULE@
 DESKTOP_IN_FILES = devhelp.desktop.in
-DESKTOP_FILES =$(DESKTOP_IN_FILES:.desktop.in=.desktop)
+DESKTOP_FILES = devhelp.desktop
 
 plugindir = $(libdir)/gedit/plugins
 plugin_PYTHON = devhelp.py
-plugin_DATA = $(DESKTOP_FILES:.desktop=.plugin)
+plugin_DATA = devhelp.plugin
 
-.desktop.plugin:
-       cp $< $*.plugin
+devhelp.plugin: devhelp.desktop
+       cp devhelp.desktop devhelp.plugin
 
 CLEANFILES = $(DESKTOP_FILES) $(plugin_DATA)
-DISTCLEANFILES = $(DESKTOP_FILES) $(plugin_DATA)
-EXTRA_DIST = $(DESKTOP_IN_FILES) $(DESKTOP_FILES) $(plugin_DATA)
+EXTRA_DIST = $(DESKTOP_IN_FILES)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]