Makefile.am: do not create files when it shouldn't
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 30 May 2019 12:42:52 +0000 (14:42 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 30 May 2019 12:42:55 +0000 (14:42 +0200)
If a pdf or html file is not distributed, previously `make dist`
would create a file called '*.pdf' which did not make sense. This
addresses this problem.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Makefile.am

index ffcbc4ee5df18aa3ca1a880baa4a1c87019e9fdc..f3b203146fd7dd5a94544caaf589cc68e68cdbf4 100644 (file)
@@ -204,6 +204,6 @@ dist-hook: libopts-check
        $(MAKE) -C doc/manpages compare-makefile
        $(MAKE) ChangeLog
        mv ChangeLog $(distdir)
-       touch $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info
+       touch -c $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info
 
 .PHONY: abi-check abi-dump-versioned abi-dump-latest pic-check symbol-check local-code-coverage-output files-update libopts-check AUTHORS