Skip to content

Instantly share code, notes, and snippets.

@ldav1s
Created June 17, 2014 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldav1s/2abb86695dec50c96742 to your computer and use it in GitHub Desktop.
Save ldav1s/2abb86695dec50c96742 to your computer and use it in GitHub Desktop.
diff --git a/configure.ac b/configure.ac
index 69af99e..252f9df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,5 +4,7 @@
AC_PREREQ([2.69])
AC_INIT([tmuxide], [0.0.3.j], [frankjmattia+tmuxide@gmail.com])
AM_INIT_AUTOMAKE
-AC_OUTPUT(Makefile man/Makefile scripts/Makefile)
+AC_CONFIG_FILES([Makefile man/Makefile scripts/Makefile])
+AC_CONFIG_FILES([scripts/tmuxide], [chmod +x scripts/tmuxide])
+AC_CONFIG_FILES([scripts/log-pane], [chmod +x scripts/log-pane])
AC_OUTPUT
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 276f62b..50874d0 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -1,16 +1,3 @@
dist_bin_SCRIPTS = tmuxide log-pane
-CLEANFILES = $(dist_bin_SCRIPTS)
-
+DISTCLEANFILES = $(dist_bin_SCRIPTS)
EXTRA_DIST = tmuxide.in log-pane.in
-
-do_subst = sed \
- -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
- -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g'
-
-tmuxide: tmuxide.in Makefile
- $(do_subst) < $(srcdir)/tmuxide.in > tmuxide
- chmod +x tmuxide
-
-log-pane: log-pane.in Makefile
- $(do_subst) < $(srcdir)/log-pane.in > log-pane
- chmod +x log-pane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment