Skip to content

Commit

Permalink
fix(build): Handle any combo of --with-manual and --with-examples flags
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 16, 2020
1 parent 25e5123 commit 145a86e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,20 @@ dist-hook: lua_modules_dist $(MANUAL) $(EXAMPLES)

if MANUAL
install-data-hook: $(MANUAL)
rm -f "$(DESTDIR)/$(datarootdir)/$<"
install -Dm644 -t "$(DESTDIR)$(docdir)" $<
endif

if EXAMPLES
install-data-hook: $(EXAMPLES)
install -Dm644 -t "$(DESTDIR)$(docdir)/examples" $^
endif

install-data-hook:
:
if MANUAL
rm -f "$(DESTDIR)/$(datarootdir)/$<"
install -Dm644 -t "$(DESTDIR)$(docdir)" $(MANUAL)
endif
if EXAMPLES
install -Dm644 -t "$(DESTDIR)$(docdir)/examples" $(EXAMPLES)
endif

# Whether to force tests to run from scratch
Expand Down

0 comments on commit 145a86e

Please sign in to comment.