Skip to content

Commit 0ac90bb

Browse files
committed
README generation rule improved.
1 parent 817e167 commit 0ac90bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile.am

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ include_HEADERS = qrencode.h
2626
pkgconfigdir = $(libdir)/pkgconfig
2727
pkgconfig_DATA = libqrencode.pc
2828
noinst_DATA = README
29-
CLEANFILES = README
30-
README: README.md
31-
- ./makeREADME.sh
29+
README_markdown_optional := $(wildcard README.md)
30+
README: $(README_markdown_optional)
31+
$(if $(README_markdown_optional), ./makeREADME.sh)
3232

3333
EXTRA_DIST = libqrencode.pc.in autogen.sh configure.ac acinclude.m4 \
3434
Makefile.am tests/Makefile.am \

0 commit comments

Comments
 (0)