about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--perl/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 8176f86d5091..50e68f17ea8e 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -14,7 +14,9 @@ install-exec-local: $(PERL_MODULES:.in=)
 # Awful hackery to get libtool to build Perl XS bindings.
 pkglib_LTLIBRARIES = libNixStore.la
 
-libNixStore_la_SOURCES = lib/Nix/Store.cc
+nodist_libNixStore_la_SOURCES = lib/Nix/Store.cc
+
+CLEANFILES = lib/Nix/Store.cc
 
 libNixStore_la_LIBADD = $(top_builddir)/src/libstore/libstore.la