Skip to content

Commit

Permalink
autodocs-ycp.ami - use nobase_ prefix instead of local hooks
Browse files Browse the repository at this point in the history
to keep the directory structure
  • Loading branch information
Ladislav Slezak committed Jul 18, 2013
1 parent a7af73b commit c3a16d8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions devtools/admin/aminclude/autodocs-ycp.ami
Expand Up @@ -17,8 +17,9 @@

htmldir = $(docdir)/$(AUTODOCS_SUBDIR)/autodocs

html_DATA = index.html $(filter-out index.html, $(wildcard *.html))
CLEANFILES = $(html_DATA) pod2htm*.tmp
# use nobase_ prefix to keep the directory structure
nobase_html_DATA = index.html $(filter-out index.html, $(wildcard *.html)) $(wildcard js/*) $(wildcard css/*) $(wildcard Yast/*)
CLEANFILES = $(nobase_html_DATA) pod2htm*.tmp

AUTODOCS_YCP ?= $(wildcard $(srcdir)/../../src/*.ycp)
AUTODOCS_PM ?= $(wildcard $(srcdir)/../../src/*.pm)
Expand All @@ -27,16 +28,11 @@ AUTODOCS_STRIP ?= $(srcdir)/../../src

# yard specific options
YARD ?= yard
YARD_EXTRA ?= js css
YARD_EXTRA_OPTIONAL ?= Yast

# yard specific hooks
# yard specific clean
clean-local:
rm -rf $(YARD_EXTRA) $(YARD_EXTRA_OPTIONAL)
rm -rf js css Yast

install-data-hook:
cp -r -a $(YARD_EXTRA) "$(DESTDIR)$(htmldir)"
if [ -e "$(YARD_EXTRA_OPTIONAL)" ]; then cp -r -a $(YARD_EXTRA_OPTIONAL) "$(DESTDIR)$(htmldir)"; fi

index.html: $(AUTODOCS_YCP) $(AUTODOCS_PM) $(AUTODOCS_RB)
#including *.pm, for the index
Expand Down

0 comments on commit c3a16d8

Please sign in to comment.