User srcdir in Makefiles for faq.py.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26996
f5534014-38df-0310-8fa8-
9805f1628bb7
SUBDIRS = tools wsutil wiretap doc epan packaging help @wireshark_SUBDIRS@
endif
-FAQ: help/faq.txt help/faq.py
+FAQ: help/faq.txt $(srcdir)/help/faq.py
(cd help ; \
$(MAKE) faq.txt ; \
cp faq.txt ../FAQ )
faq.txt \
overview.txt
-EXTRA_DIST = $(help_DATA) Makefile.nmake faq.py
+EXTRA_DIST = $(help_DATA) Makefile.nmake $(srcdir)/faq.py
CLEANFILES = faq.txt
Makefile.in
# Try our best to convert the FAQ to text.
-faq.txt: faq.py
- ./faq.py >$@.tmp
+faq.txt: $(srcdir)/faq.py
+ $(srcdir)/faq.py >$@.tmp
elinks -dump -dump-width 72 -no-numbering -no-references < $@.tmp > $@ || \
links -dump -width 72 -no-numbering -no-references < $@.tmp > $@ || \
lynx -dump -width=72 -nolist -stdin -force-html < $@.tmp > $@