Fixup make install in icm dir, they go in $(libdir)/spice

This commit is contained in:
stefanjones 2003-08-01 19:01:20 +00:00
parent 5d43b13672
commit 9db289c64f
2 changed files with 23 additions and 0 deletions

View File

@ -18,12 +18,22 @@ MAKE = make -f $(TOPDIR)Makefile TOPDIR=$(TOPDIR)
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
INSTALL_DATA = ${INSTALL} -m 644
all:
@amf=$$2; for x in $(CMDIRS) ; do \
( cd $$x && $(UPMAKE) $$x-mods ) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
install: all
$(mkinstalldirs) $(DESTDIR)$(libdir)/spice
@for x in $(CMDIRS) ; do \
echo "$(INSTALL_DATA) $$x/$$x.cm $(DESTDIR)$(libdir)/spice"; \
$(INSTALL_DATA) $$x/$$x.cm $(DESTDIR)$(libdir)/spice \
|| exit 1; \
done
clean:
@amf=$$2; for x in $(CMDIRS) ; do \
( cd $$x && $(UPMAKE) $$x-mods-clean ) \

View File

@ -25,3 +25,16 @@ LDFLAGS = -shared
# The codemodels to make
CMDIRS = spice2poly digital analog xtradev xtraevt
# Install instructions
# or use mkdir -p
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@