Commit 43e979f2 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Fixed installation of .vo files into nested directories.

parent 2004dc48
......@@ -24,7 +24,6 @@ FILES = \
Prop/Fprop_relative.v \
Prop/Fprop_Sterbenz.v
data_DATA = $(FILES:=o)
EXTRA_DIST = $(FILES)
CLEANFILES = $(FILES:=o) $(FILES:=d) $(FILES:.v=.glob)
......@@ -40,4 +39,24 @@ datadir = $(libdir)
SUFFIXES = .v .vo .vd
install-data-local:
@$(NORMAL_INSTALL)
@test -z "$(datadir)" || \
for p in Core Calc Prop; do \
$(MKDIR_P) "$(DESTDIR)$(datadir)/$$p"; \
done
@list='$(FILES:=o)'; test -n "$(datadir)" || list=; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p" "$(DESTDIR)$(datadir)/$$p"; \
done | \
while read src dst; do \
echo " $(INSTALL_DATA) $$src $$dst"; \
$(INSTALL_DATA) "$$src" "$$dst" || exit $$?; \
done
uninstall-local:
@$(NORMAL_UNINSTALL)
test -z "$(datadir)" || rm -rf "$(DESTDIR)$(datadir)/$$p"
-include $(FILES:=d)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment