Commit ecd75c74 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Get rid of gmakeism in manual page generation

%-rules are a gmakeism, and similarly, it appears that GNU and BSD
make treat $< differently for target rules.  This commit should
hopefully make BSD make happier when it comes to make dist.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5485 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2b7c109b
......@@ -15,9 +15,9 @@ varnishadm_LDADD = \
$(top_builddir)/lib/libvarnishcompat/libvarnishcompat.la \
${PTHREAD_LIBS} ${NET_LIBS}
%.1: $(top_srcdir)/doc/sphinx/reference/%.rst
varnishadm.1: $(top_srcdir)/doc/sphinx/reference/varnishadm.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -117,9 +117,9 @@ default_vcl.h: default.vcl Makefile
# Explicitly record dependency
mgt_vcc.c: default_vcl.h
%.1: ../../doc/sphinx/reference/%.rst
varnishd.1: $(top_srcdir)/doc/sphinx/reference/varnishd.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? @
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -14,9 +14,9 @@ varnishhist_LDADD = \
-lm \
${CURSES_LIBS} ${PTHREAD_LIBS}
%.1: ../../doc/sphinx/reference/%.rst
varnishhist.1: $(top_srcdir)/doc/sphinx/reference/varnishhist.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -14,9 +14,9 @@ varnishlog_LDADD = \
$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
${PTHREAD_LIBS}
%.1: ../../doc/sphinx/reference/%.rst
varnishlog.1: $(top_srcdir)/doc/sphinx/reference/varnishlog.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -14,9 +14,9 @@ varnishncsa_LDADD = \
$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
${PTHREAD_LIBS}
%.1: ../../doc/sphinx/reference/%.rst
varnishncsa.1: $(top_srcdir)/doc/sphinx/reference/varnishncsa.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -15,9 +15,9 @@ varnishreplay_LDADD = \
$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
${PTHREAD_LIBS} ${NET_LIBS}
%.1: ../../doc/sphinx/reference/%.rst
varnishreplay.1: $(top_srcdir)/doc/sphinx/reference/varnishreplay.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -14,9 +14,9 @@ varnishsizes_LDADD = \
-lm \
${CURSES_LIBS} ${PTHREAD_LIBS}
%.1: $(top_srcdir)/doc/sphinx/reference/%.rst
varnishsizes.1: $(top_srcdir)/doc/sphinx/reference/varnishsizes.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -17,9 +17,9 @@ varnishstat_LDADD = \
$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
${CURSES_LIBS} ${RT_LIBS} ${PTHREAD_LIBS}
%.1: ../../doc/sphinx/reference/%.rst
varnishstat.1: $(top_srcdir)/doc/sphinx/reference/varnishstat.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -33,9 +33,9 @@ varnishtest_CFLAGS = \
EXTRA_DIST = $(top_srcdir)/bin/varnishtest/tests/*.vtc \
$(top_srcdir)/bin/varnishtest/tests/README
%.1: ../../doc/sphinx/reference/%.rst
varnishtest.1: $(top_srcdir)/doc/sphinx/reference/varnishtest.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
......@@ -13,9 +13,9 @@ varnishtop_LDADD = \
$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
${CURSES_LIBS} ${PTHREAD_LIBS}
%.1: ../../doc/sphinx/reference/%.rst
varnishtop.1: $(top_srcdir)/doc/sphinx/reference/varnishtop.rst
if HAVE_RST2MAN
${RST2MAN} $< >$@
${RST2MAN} $? $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment