Remove .py extension on installation.
authorJulien Lavergne <julien.lavergne@gmail.com>
Fri, 18 Jun 2010 20:31:24 +0000 (22:31 +0200)
committerJulien Lavergne <julien.lavergne@gmail.com>
Fri, 18 Jun 2010 20:31:24 +0000 (22:31 +0200)
data/media/Makefile.am
src/fontconfig/Makefile.am
src/keyboardconf/Makefile.am
src/lxcc/Makefile.am
src/lxdmconf/Makefile.am
src/lxproxy/Makefile.am
src/openbox-keyconf/Makefile.am
src/screenshot/Makefile.am
src/services/Makefile.am

index 191639b..f20254c 100644 (file)
@@ -2,11 +2,12 @@ NULL=
 
 SUBDIRS=
 
-media_iconsdir = $(datadir)/lxadmin/icons
-dist_media_icons_DATA =                \
-       $(wildcard icons/*.svg)         \
-       $(wildcard icons/*.png)         \
+media_iconsdir = $(pkgdatadir)/icons
+media_icons_DATA =             \
+       $(wildcard *.svg)               \
+       $(wildcard *.png)               \
        $(NULL)
 
 EXTRA_DIST = \
+       $(media_icons_DATA) \
        $(NULL)
index 8e3b547..910e259 100644 (file)
@@ -2,12 +2,17 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = fontconfig.py
-
 fontconfigdir = $(prefix)/bin
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = fontconfig.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 fontconfig.py "$(DESTDIR)$(bindir)/fontconfig"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/fontconfig
 
 EXTRA_DIST =  \
-    $(bin_SCRIPTS) \
+    fontconfig.py \
        $(NULL)
index 8ba504e..5159528 100644 (file)
@@ -2,12 +2,17 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = keyboardconf.py
-
 keyboardconfdir = $(prefix)/bin
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = keyboardconf.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 keyboardconf.py "$(DESTDIR)$(bindir)/keyboardconf"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/keyboardconf
 
 EXTRA_DIST =  \
-    $(bin_SCRIPTS) \
+    keyboardconf.py \
        $(NULL)
index 52a738e..f02f72e 100644 (file)
@@ -2,12 +2,17 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = lxcc.py
-
 lxccdir = $(prefix)/bin
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = lxcc.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 lxcc.py "$(DESTDIR)$(bindir)/lxcc"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/lxcc
 
 EXTRA_DIST =  \
-    $(bin_SCRIPTS) \
+    lxcc.py \
        $(NULL)
index 2827e52..2067917 100644 (file)
@@ -2,12 +2,17 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = lxdmconf.py
-
 lxdmconfdir = $(prefix)/bin
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = lxdmconf.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 lxdmconf.py "$(DESTDIR)$(bindir)/lxdmconf"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/lxdmconf
 
 EXTRA_DIST =  \
-    $(bin_SCRIPTS) \
+    lxdmconf.py \
        $(NULL)
index 1fb4978..a658efc 100644 (file)
@@ -2,22 +2,27 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = lxproxy.py
-
 lxproxydir = $(prefix)/bin
 
-lxproxymoduledir = $(pythondir)/lxadmin
-lxproxymodule_PYTHON = \
+lxproxymoduledir = $(pkgdatadir)
+lxproxymodule_DATA =   \
        __init__.py     \
     AboutLxproxyDialog.py \
     lxproxyconfig.py \
     PreferencesLxproxyDialog.py \
        $(NULL)
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = lxproxy.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 lxproxy.py "$(DESTDIR)$(bindir)/lxproxy"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/lxproxy
 
 EXTRA_DIST =  \
     __init__.py.in \
-    $(bin_SCRIPTS) \
-    $(lxproxy_PYTHON) \
+    lxproxy.py \
+    $(lxproxymodule_DATA) \
        $(NULL)
index 760521c..d6944bf 100644 (file)
@@ -2,12 +2,17 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = openbox-keyconf.py
-
 openboxkeyconfdir = $(prefix)/bin
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = openbox-keyconf.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 openbox-keyconf.py "$(DESTDIR)$(bindir)/openbox-keyconf"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/openbox-keyconf
 
 EXTRA_DIST =  \
-    $(bin_SCRIPTS) \
+    openbox-keyconf.py \
        $(NULL)
index dc35bd6..6b6612f 100644 (file)
@@ -2,12 +2,17 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = screenshot.py
-
 screenshotdir = $(prefix)/bin
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = screenshot.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 screenshot.py "$(DESTDIR)$(bindir)/screenshot"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/screenshot
 
 EXTRA_DIST =  \
-    $(bin_SCRIPTS) \
+       screenshot.py \
        $(NULL)
index 6c25e42..dbf6fef 100644 (file)
@@ -2,12 +2,17 @@ NULL=
 
 SUBDIRS=
 
-bin_SCRIPTS = services.py
-
 servicesdir = $(prefix)/bin
 
-DISTCLEANFILES = $(bin_SCRIPTS)         
+DISTCLEANFILES = services.py
+
+install-exec-local:
+       test -e "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)"
+       $(INSTALL) -m 755 services.py "$(DESTDIR)$(bindir)/services"
+
+uninstall-local:
+       rm -f $(DESTDIR)$(bindir)/services
 
 EXTRA_DIST =  \
-    $(bin_SCRIPTS) \
+    services.py \
        $(NULL)