Explorar el Código

build: Handle the ChangeLog as a distributed-only file

The ChangeLog file is distributed, and cannot be regenerated outside
of the git repository, so do not remove it in DISTCLEANFILES, and move
the generation code into dist-hook, which also avoids unnecessary
computation during normal builds.
Guillem Jover hace 13 años
padre
commit
2b3e9afffc
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1 6
      Makefile.am

+ 1 - 6
Makefile.am

@@ -148,12 +148,6 @@ update-po:
 	$(MAKE) -C dselect/po update-po
 	$(MAKE) -C man update-po
 
-.PHONY: ChangeLog
-DISTCLEANFILES = ChangeLog
-
-ChangeLog:
-	git log -C --stat 1.15.0.. >$@
-
 # If we create the dist tarball from the git repository, make sure
 # that we're not forgetting some files...
 dist-hook:
@@ -165,6 +159,7 @@ dist-hook:
 				exit 1 ; \
 			fi ; \
 		done ; \
+		git log -C --stat 1.15.0.. >$(distdir)/ChangeLog; \
 	fi
 
 clean-local: doc-clean coverage-clean check-clean