File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,15 @@ if(INSTALL_MANPAGES)
300
300
OUTPUT man/metaflac.1
301
301
COMMAND pandoc --standalone --to man "${CMAKE_SOURCE_DIR} /man/metaflac.md" > man/metaflac.1
302
302
)
303
- add_custom_target (man ALL DEPENDS man/flac.1 man/metaflac.1)
303
+ add_custom_command (
304
+ OUTPUT man/flac.html
305
+ COMMAND pandoc --standalone --embed-resources --to html "${CMAKE_SOURCE_DIR} /man/flac.md" > man/flac.html || pandoc --self-contained --to html "${CMAKE_SOURCE_DIR} /man/flac.md" > man/flac.html
306
+ )
307
+ add_custom_command (
308
+ OUTPUT man/metaflac.html
309
+ COMMAND pandoc --standalone --embed-resources --to html "${CMAKE_SOURCE_DIR} /man/metaflac.md" > man/metaflac.html || pandoc --self-contained --to html "${CMAKE_SOURCE_DIR} /man/metaflac.md" > man/metaflac.html
310
+ )
311
+ add_custom_target (man ALL DEPENDS man/flac.1 man/metaflac.1 man/flac.html man/metaflac.html)
304
312
install (FILES "${CMAKE_BINARY_DIR} /man/flac.1" "${CMAKE_BINARY_DIR} /man/metaflac.1" DESTINATION "${CMAKE_INSTALL_MANDIR} /man1" )
305
313
else ()
306
314
if (EXISTS "${CMAKE_SOURCE_DIR} /man/flac.1" AND EXISTS "${CMAKE_SOURCE_DIR} /man/metaflac.1" )
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ flac.1: flac.md
22
22
23
23
metaflac.1 : metaflac.md
24
24
pandoc --standalone --to man $? > $@
25
-
25
+
26
26
flac.html : flac.md
27
- pandoc --standalone --to html --css style.css -B header.inc -A footer.inc --embed-resources $? > $@
27
+ pandoc --standalone --to html --css style.css -B header.inc -A footer.inc --embed-resources $? > $@ || pandoc --self-contained --to html --css style.css -B header.inc -A footer.inc $? > $@
28
28
29
29
metaflac.html : metaflac.md
30
- pandoc --standalone --to html --css style.css -B header.inc -A footer.inc --embed-resources $? > $@
30
+ pandoc --standalone --to html --css style.css -B header.inc -A footer.inc --embed-resources $? > $@ || pandoc --self-contained --to html --css style.css -B header.inc -A footer.inc $? > $@
31
31
32
32
man_MANS = flac.1 metaflac.1
33
33
doc_DATA = flac.html metaflac.html
You can’t perform that action at this time.
0 commit comments