Skip to content

Commit

Permalink
Makefile.am: publish "tip.png" icon from asciidoc [networkupstools#52]
Browse files Browse the repository at this point in the history
The HTMLPROOFER found many references to this icon file, unfulfilled.

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed May 7, 2024
1 parent e508028 commit 342dc31
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ IMAGE_FILES = \
images/simple.png \
images/warning.png

# Copied below from asciidoc resource location, if available
IMAGE_FILES_ASCIIDOC_ICONS = \
images/tip.png

CABLE_IMAGE_FILES = \
images/cables/73-0724.png \
images/cables/940-0024C.jpg \
Expand Down Expand Up @@ -149,6 +153,7 @@ all-files: \
$(WEBSITE_FILES) \
$(FAVICON_FILES) \
$(IMAGE_FILES) \
$(IMAGE_FILES_ASCIIDOC_ICONS) \
$(CABLE_IMAGE_FILES) \
$(LAYOUT_FILES) \
$(SCRIPT_FILES) \
Expand Down Expand Up @@ -223,6 +228,15 @@ $(WEBSITE_FILES): $(LAYOUT).conf historic-release.txt
images/:
$(MKDIR_P) images

# FIXME: Detect location via configure script?
# The file would be published at least once to the ultimate site...
$(IMAGE_FILES_ASCIIDOC_ICONS): images/
if [ -d /usr/share/asciidoc ]; then \
find /usr/share/asciidoc -name "$(@F)" -exec cp -f '{}' images/ \; ; \
else \
echo "Can not find ASCIIDOC resource location, skipped $@" ; \
fi

$(IMAGE_FILES): images/
cp -f nut/docs/$@ images/

Expand Down

0 comments on commit 342dc31

Please sign in to comment.