Lines 646-771
Link Here
|
646 |
cd $(top_builddir)/adm/make && $(MAKE) $(AM_MAKEFLAGS) Wrappers |
646 |
cd $(top_builddir)/adm/make && $(MAKE) $(AM_MAKEFLAGS) Wrappers |
647 |
|
647 |
|
648 |
install-exec-local: |
648 |
install-exec-local: |
649 |
$(INSTALL) -d $(prefix)/$(platform) |
649 |
$(INSTALL) -d $(DESTDIR)$(prefix)/$(platform) |
650 |
if [ -e $(prefix)/bin -a ! -e $(prefix)/$(platform)/bin ]; then \ |
650 |
if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(platform)/bin ]; then \ |
651 |
cd $(prefix)/$(platform) && ln -s ../bin bin; \ |
651 |
cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../bin bin; \ |
652 |
fi |
652 |
fi |
653 |
if [ -e $(prefix)/lib -a ! -e $(prefix)/$(platform)/lib ]; then \ |
653 |
if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(platform)/lib ]; then \ |
654 |
cd $(prefix)/$(platform) && ln -s ../lib lib; \ |
654 |
cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../lib lib; \ |
655 |
fi |
655 |
fi |
656 |
$(INSTALL) -d $(prefix)/$(dir_$(platform)) |
656 |
$(INSTALL) -d $(DESTDIR)$(prefix)/$(dir_$(platform)) |
657 |
if [ -e $(prefix)/bin -a ! -e $(prefix)/$(dir_$(platform))/bin ]; then \ |
657 |
if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/bin ]; then \ |
658 |
cd $(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \ |
658 |
cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \ |
659 |
fi |
659 |
fi |
660 |
if [ -e $(prefix)/lib -a ! -e $(prefix)/$(dir_$(platform))/lib ]; then \ |
660 |
if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/lib ]; then \ |
661 |
cd $(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \ |
661 |
cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \ |
662 |
fi |
662 |
fi |
663 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
663 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
664 |
if [ "$$pd" != "$$sd" ]; then \ |
664 |
if [ "$$pd" != "$$sd" ]; then \ |
665 |
$(INSTALL) -d $(prefix)/inc; \ |
665 |
$(INSTALL) -d $(DESTDIR)$(prefix)/inc; \ |
666 |
cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(prefix); \ |
666 |
cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(DESTDIR)$(prefix); \ |
667 |
fi; \ |
667 |
fi; \ |
668 |
if [ "$$pd" != "$$bd" ]; then \ |
668 |
if [ "$$pd" != "$$bd" ]; then \ |
669 |
cp -fr$(CP_$(platform)) $$bd/config.h $(prefix); \ |
669 |
cp -fr$(CP_$(platform)) $$bd/config.h $(DESTDIR)$(prefix); \ |
670 |
fi |
670 |
fi |
671 |
if [ -e $(prefix)/inc/config.h ]; then \ |
671 |
if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \ |
672 |
unlink $(prefix)/inc/config.h; \ |
672 |
unlink $(DESTDIR)$(prefix)/inc/config.h; \ |
673 |
fi |
673 |
fi |
674 |
cd $(prefix)/inc && ln -s ../config.h config.h |
674 |
cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h |
675 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
675 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
676 |
if [ "$$pd" != "$$sd" -a -d $(top_srcdir)/src/UnitsAPI ]; then \ |
676 |
if [ "$$pd" != "$$sd" -a -d $(top_srcdir)/src/UnitsAPI ]; then \ |
677 |
$(INSTALL) -d $(prefix)/src; \ |
677 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src; \ |
678 |
$(INSTALL) -d $(prefix)/src/UnitsAPI; \ |
678 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/UnitsAPI; \ |
679 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(prefix)/src; \ |
679 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(DESTDIR)$(prefix)/src; \ |
680 |
cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(prefix); \ |
680 |
cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(DESTDIR)$(prefix); \ |
681 |
fi |
681 |
fi |
682 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
682 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
683 |
if [ "$$pd" != "$$sd" ]; then \ |
683 |
if [ "$$pd" != "$$sd" ]; then \ |
684 |
inst_dirs="$(FoundationClasses_DIRS)"; \ |
684 |
inst_dirs="$(FoundationClasses_DIRS)"; \ |
685 |
if test "x$(FoundationClasses_DIRS)" != "x"; then \ |
685 |
if test "x$(FoundationClasses_DIRS)" != "x"; then \ |
686 |
for d in $$inst_dirs; do \ |
686 |
for d in $$inst_dirs; do \ |
687 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
687 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
688 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
688 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
689 |
done; \ |
689 |
done; \ |
690 |
fi; \ |
690 |
fi; \ |
691 |
fi |
691 |
fi |
692 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
692 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
693 |
if [ "$$pd" != "$$sd" ]; then \ |
693 |
if [ "$$pd" != "$$sd" ]; then \ |
694 |
inst_dirs="$(ModelingData_DIRS)"; \ |
694 |
inst_dirs="$(ModelingData_DIRS)"; \ |
695 |
if test "x$(ModelingData_DIRS)" != "x"; then \ |
695 |
if test "x$(ModelingData_DIRS)" != "x"; then \ |
696 |
for d in $$inst_dirs; do \ |
696 |
for d in $$inst_dirs; do \ |
697 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
697 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
698 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
698 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
699 |
done; \ |
699 |
done; \ |
700 |
fi; \ |
700 |
fi; \ |
701 |
fi |
701 |
fi |
702 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
702 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
703 |
if [ "$$pd" != "$$sd" ]; then \ |
703 |
if [ "$$pd" != "$$sd" ]; then \ |
704 |
inst_dirs="$(ModelingAlgorithms_DIRS)"; \ |
704 |
inst_dirs="$(ModelingAlgorithms_DIRS)"; \ |
705 |
if test "x$(ModelingAlgorithms_DIRS)" != "x"; then \ |
705 |
if test "x$(ModelingAlgorithms_DIRS)" != "x"; then \ |
706 |
for d in $$inst_dirs; do \ |
706 |
for d in $$inst_dirs; do \ |
707 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
707 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
708 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
708 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
709 |
done; \ |
709 |
done; \ |
710 |
fi; \ |
710 |
fi; \ |
711 |
fi |
711 |
fi |
712 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
712 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
713 |
if [ "$$pd" != "$$sd" ]; then \ |
713 |
if [ "$$pd" != "$$sd" ]; then \ |
714 |
inst_dirs="$(Visualization_DIRS)"; \ |
714 |
inst_dirs="$(Visualization_DIRS)"; \ |
715 |
if test "x$(Visualization_DIRS)" != "x"; then \ |
715 |
if test "x$(Visualization_DIRS)" != "x"; then \ |
716 |
for d in $$inst_dirs; do \ |
716 |
for d in $$inst_dirs; do \ |
717 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
717 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
718 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
718 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
719 |
done; \ |
719 |
done; \ |
720 |
fi; \ |
720 |
fi; \ |
721 |
fi |
721 |
fi |
722 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
722 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
723 |
if [ "$$pd" != "$$sd" ]; then \ |
723 |
if [ "$$pd" != "$$sd" ]; then \ |
724 |
inst_dirs="$(ApplicationFramework_DIRS)"; \ |
724 |
inst_dirs="$(ApplicationFramework_DIRS)"; \ |
725 |
if test "x$(ApplicationFramework_DIRS)" != "x"; then \ |
725 |
if test "x$(ApplicationFramework_DIRS)" != "x"; then \ |
726 |
for d in $$inst_dirs; do \ |
726 |
for d in $$inst_dirs; do \ |
727 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
727 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
728 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
728 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
729 |
done; \ |
729 |
done; \ |
730 |
fi; \ |
730 |
fi; \ |
731 |
fi |
731 |
fi |
732 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
732 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
733 |
if [ "$$pd" != "$$sd" ]; then \ |
733 |
if [ "$$pd" != "$$sd" ]; then \ |
734 |
inst_dirs="$(DataExchange_DIRS)"; \ |
734 |
inst_dirs="$(DataExchange_DIRS)"; \ |
735 |
if test "x$(DataExchange_DIRS)" != "x"; then \ |
735 |
if test "x$(DataExchange_DIRS)" != "x"; then \ |
736 |
for d in $$inst_dirs; do \ |
736 |
for d in $$inst_dirs; do \ |
737 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
737 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
738 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
738 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
739 |
done; \ |
739 |
done; \ |
740 |
fi; \ |
740 |
fi; \ |
741 |
fi |
741 |
fi |
742 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
742 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
743 |
if [ "$$pd" != "$$sd" ]; then \ |
743 |
if [ "$$pd" != "$$sd" ]; then \ |
744 |
inst_dirs="$(Draw_DIRS)"; \ |
744 |
inst_dirs="$(Draw_DIRS)"; \ |
745 |
if test "x$(Draw_DIRS)" != "x"; then \ |
745 |
if test "x$(Draw_DIRS)" != "x"; then \ |
746 |
for d in $$inst_dirs; do \ |
746 |
for d in $$inst_dirs; do \ |
747 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
747 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
748 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
748 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
749 |
done; \ |
749 |
done; \ |
750 |
fi; \ |
750 |
fi; \ |
751 |
fi |
751 |
fi |
752 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
752 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
753 |
if [ "$$pd" != "$$sd" ]; then \ |
753 |
if [ "$$pd" != "$$sd" ]; then \ |
754 |
inst_dirs="$(WOK_DIRS)"; \ |
754 |
inst_dirs="$(WOK_DIRS)"; \ |
755 |
if test "x$(WOK_DIRS)" != "x"; then \ |
755 |
if test "x$(WOK_DIRS)" != "x"; then \ |
756 |
for d in $$inst_dirs; do \ |
756 |
for d in $$inst_dirs; do \ |
757 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
757 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
758 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
758 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
759 |
done; \ |
759 |
done; \ |
760 |
fi; \ |
760 |
fi; \ |
761 |
fi |
761 |
fi |
762 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \ |
762 |
bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \ |
763 |
if [ "$$pd" != "$$sd" ]; then \ |
763 |
if [ "$$pd" != "$$sd" ]; then \ |
764 |
inst_dirs="$(Wrappers_DIRS)"; \ |
764 |
inst_dirs="$(Wrappers_DIRS)"; \ |
765 |
if test "x$(Wrappers_DIRS)" != "x"; then \ |
765 |
if test "x$(Wrappers_DIRS)" != "x"; then \ |
766 |
for d in $$inst_dirs; do \ |
766 |
for d in $$inst_dirs; do \ |
767 |
$(INSTALL) -d $(prefix)/src/$$d; \ |
767 |
$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \ |
768 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \ |
768 |
cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \ |
769 |
done; \ |
769 |
done; \ |
770 |
fi; \ |
770 |
fi; \ |
771 |
fi |
771 |
fi |