summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac1
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index bb381d6..5cfedb4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -48,6 +48,12 @@ x11perf_SOURCES = \
x11perf.h
bin_SCRIPTS = x11perfcomp
+CLEANFILES = $(bin_SCRIPTS)
+EXTRA_DIST = $(bin_SCRIPTS:=.in)
+DIR_SUBSTS = -e 's|@x11perfcompdir[@]|$(x11perfcompdir)|g'
+
+x11perfcomp: x11perfcomp.in
+ $(AM_V_GEN)$(SED) $(DIR_SUBSTS) < $(srcdir)/$@.in > $@
dist_x11perfcomp_SCRIPTS = \
fillblnk \
diff --git a/configure.ac b/configure.ac
index 1b62a88..dfbed8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,7 +79,6 @@ yes)
esac
AC_CONFIG_FILES([
- x11perfcomp
Makefile
man/Makefile])
AC_OUTPUT