1# These files are always required due to `make dist` needing them. 2 3STATIC_FILES = \ 4 amigaos.html \ 5 android.html \ 6 beos.html \ 7 darwin.html \ 8 favicon.ico \ 9 index.html \ 10 latofonts.css \ 11 macosx.html \ 12 nsosrh.html \ 13 qnx.html \ 14 robots.txt \ 15 sco.html \ 16 sitemap.xml \ 17 solaris.html \ 18 sortix.html \ 19 unix.html \ 20 vice.css \ 21 windows.html 22 23FONTS_FILES = \ 24 fonts/Lato-Bold.eot \ 25 fonts/Lato-Bold.ttf \ 26 fonts/Lato-Bold.woff \ 27 fonts/Lato-Bold.woff2 \ 28 fonts/Lato-BoldItalic.eot \ 29 fonts/Lato-BoldItalic.ttf \ 30 fonts/Lato-BoldItalic.woff \ 31 fonts/Lato-BoldItalic.woff2 \ 32 fonts/Lato-Italic.eot \ 33 fonts/Lato-Italic.ttf \ 34 fonts/Lato-Italic.woff \ 35 fonts/Lato-Italic.woff2 \ 36 fonts/Lato-Regular.eot \ 37 fonts/Lato-Regular.ttf \ 38 fonts/Lato-Regular.woff \ 39 fonts/Lato-Regular.woff2 \ 40 fonts/OFL.txt 41 42IMAGES_FILES = \ 43 images/CIPS2008.png \ 44 images/new.gif \ 45 images/vice-logo.svg 46 47EXTRA_DIST = \ 48 checklinks.sh \ 49 texi2html \ 50 $(STATIC_FILES) \ 51 $(FONTS_FILES) \ 52 $(IMAGES_FILES) 53 54 55htmldir = $(VICE_DOCDIR)/html 56fontsdir = $(htmldir)/fonts 57imagesdir = $(htmldir)/images 58 59 60if ENABLE_HTML_DOCS 61 62GEN_HTML := \ 63 vice_foot.html \ 64 vice_toc.html \ 65 $(patsubst %,vice_%.html,$(shell seq 23)) 66 67TEXT_FILES = \ 68 COPYING \ 69 NEWS 70 71 72HTML_FILES = \ 73 $(TEXT_FILES) \ 74 $(STATIC_FILES) 75 76if HAVE_PERL 77HTML_FILES += \ 78 $(GEN_HTML) 79endif 80 81 82COPIED_FILES = $(if $(subst x.x,,x$(srcdir)x),$(STATIC_FILES) $(FONTS_FILES) $(IMAGES_FILES)) 83 84CLEANFILES = \ 85 vice_*.html \ 86 $(TEXT_FILES) \ 87 $(COPIED_FILES) 88 89 90 91if ENABLE_HTML_DOCS 92html_DATA = $(HTML_FILES) 93fonts_DATA = $(FONTS_FILES) 94images_DATA = $(IMAGES_FILES) 95else 96noinst_DATA = \ 97 $(HTML_FILES) \ 98 $(FONTS_FILES) \ 99 $(IMAGES_FILES) 100endif 101 102# It's awkward to make the following multi-output rule work properly 103# in parallel but it's the only intensive rule anyway so just 104# serialize the whole Makefile. See the Automake manual for details. 105# https://www.gnu.org/software/automake/manual/automake.html#Multiple-Outputs 106.NOTPARALLEL: 107 108if HAVE_PERL 109$(GEN_HTML): $(top_srcdir)/doc/vice.texi $(srcdir)/texi2html 110 @echo "generating html documentation..." 111 $(PERL) "$(srcdir)"/texi2html -number -split_chapter -D$(PLATFORM_DOX_FLAGS) "$<" 112endif 113 114$(TEXT_FILES): %: $(top_srcdir)/% 115 cp "$<" "$@" 116 117fonts images: 118 mkdir -p "$@" 119 120$(COPIED_FILES): %: $(srcdir)/% | fonts images 121 cp "$<" "$@" 122 123endif 124