Also create a plain text (.txt) file from fate.texi if the makeinfo
program is available.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -1195,6 +1195,7 @@ HAVE_LIST=" |
| 1195 | 1195 |
lzo1x_999_compress |
| 1196 | 1196 |
machine_ioctl_bt848_h |
| 1197 | 1197 |
machine_ioctl_meteor_h |
| 1198 |
+ makeinfo |
|
| 1198 | 1199 |
malloc_h |
| 1199 | 1200 |
MapViewOfFile |
| 1200 | 1201 |
memalign |
| ... | ... |
@@ -3153,6 +3154,7 @@ fi |
| 3153 | 3153 |
enabled sdl && add_cflags $sdl_cflags && add_extralibs $sdl_libs |
| 3154 | 3154 |
|
| 3155 | 3155 |
texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html |
| 3156 |
+makeinfo --version > /dev/null 2>&1 && enable makeinfo || disable makeinfo |
|
| 3156 | 3157 |
|
| 3157 | 3158 |
check_header linux/fb.h |
| 3158 | 3159 |
check_header linux/videodev.h |
| ... | ... |
@@ -9,7 +9,13 @@ HTMLPAGES = $(PROGS-yes:%=doc/%.html) \ |
| 9 | 9 |
doc/libavfilter.html \ |
| 10 | 10 |
doc/platform.html \ |
| 11 | 11 |
|
| 12 |
+TXTPAGES = doc/fate.txt \ |
|
| 13 |
+ |
|
| 14 |
+ |
|
| 12 | 15 |
DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES) |
| 16 |
+ifdef HAVE_MAKEINFO |
|
| 17 |
+DOCS += $(TXTPAGES) |
|
| 18 |
+endif |
|
| 13 | 19 |
|
| 14 | 20 |
all-$(CONFIG_DOC): documentation |
| 15 | 21 |
|
| ... | ... |
@@ -17,6 +23,11 @@ documentation: $(DOCS) |
| 17 | 17 |
|
| 18 | 18 |
TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
|
| 19 | 19 |
|
| 20 |
+doc/%.txt: TAG = TXT |
|
| 21 |
+doc/%.txt: doc/%.texi |
|
| 22 |
+ $(Q)$(TEXIDEP) |
|
| 23 |
+ $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null |
|
| 24 |
+ |
|
| 20 | 25 |
doc/%.html: TAG = HTML |
| 21 | 26 |
doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init |
| 22 | 27 |
$(Q)$(TEXIDEP) |
| ... | ... |
@@ -46,7 +57,7 @@ uninstall-man: |
| 46 | 46 |
$(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES)) |
| 47 | 47 |
|
| 48 | 48 |
clean:: |
| 49 |
- $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) |
|
| 49 |
+ $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) |
|
| 50 | 50 |
|
| 51 | 51 |
-include $(wildcard $(DOCS:%=%.d)) |
| 52 | 52 |
|