Lines 82-108
Link Here
|
82 |
cd $(top_builddir)/adm/make && $(MAKE) $(AM_MAKEFLAGS) Draw |
82 |
cd $(top_builddir)/adm/make && $(MAKE) $(AM_MAKEFLAGS) Draw |
83 |
|
83 |
|
84 |
install-exec-local: |
84 |
install-exec-local: |
85 |
$(INSTALL) -d $(PREFIX)$(prefix)/$(platform) |
85 |
$(INSTALL) -d $(DESTDIR)/$(PREFIX)$(prefix)/$(platform) |
86 |
if [ -e $(PREFIX)$(prefix)/bin -a ! -e $(PREFIX)$(prefix)/$(platform)/bin ]; then \ |
86 |
if [ -e $(DESTDIR)/$(PREFIX)$(prefix)/bin -a ! -e $(DESTDIR)/$(PREFIX)$(prefix)/$(platform)/bin ]; then \ |
87 |
cd $(PREFIX)$(prefix)/$(platform) && ln -s ../bin bin; \ |
87 |
cd $(DESTDIR)/$(PREFIX)$(prefix)/$(platform) && ln -s ../bin bin; \ |
88 |
fi |
88 |
fi |
89 |
if [ -e $(PREFIX)$(prefix)/lib -a ! -e $(PREFIX)$(prefix)/$(platform)/lib ]; then \ |
89 |
if [ -e $(DESTDIR)/$(PREFIX)$(prefix)/lib -a ! -e $(DESTDIR)/$(PREFIX)$(prefix)/$(platform)/lib ]; then \ |
90 |
cd $(PREFIX)$(prefix)/$(platform) && ln -s ../lib lib; \ |
90 |
cd $(DESTDIR)/$(PREFIX)$(prefix)/$(platform) && ln -s ../lib lib; \ |
91 |
fi |
91 |
fi |
92 |
buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(PREFIX)$(prefix); installd=`pwd`; cd $$buildd; \ |
92 |
buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(DESTDIR)/$(PREFIX)$(prefix); installd=`pwd`; cd $$buildd; \ |
93 |
if [ "$$installd" != "$$sourced" ]; then \ |
93 |
if [ "$$installd" != "$$sourced" ]; then \ |
94 |
$(INSTALL) -d $(PREFIX)$(prefix)/inc; \ |
94 |
$(INSTALL) -d $(DESTDIR)/$(PREFIX)$(prefix)/inc; \ |
95 |
cp -frL $(top_srcdir)/inc $(PREFIX)$(prefix); \ |
95 |
cp -frL $(top_srcdir)/inc $(DESTDIR)/$(PREFIX)$(prefix); \ |
96 |
cp -frL $$buildd/config.h $(PREFIX)$(prefix); \ |
96 |
cp -frL $$buildd/config.h $(DESTDIR)/$(PREFIX)$(prefix); \ |
97 |
for d in $(FoundationClasses_DIRS) $(ModelingData_DIRS) $(ModelingAlgorithms_DIRS) $(Visualization_DIRS) $(ApplicationFramework_DIRS) $(DataExchange_DIRS) $(Draw_DIRS); do \ |
97 |
for d in $(FoundationClasses_DIRS) $(ModelingData_DIRS) $(ModelingAlgorithms_DIRS) $(Visualization_DIRS) $(ApplicationFramework_DIRS) $(DataExchange_DIRS) $(Draw_DIRS); do \ |
98 |
$(INSTALL) -d $(PREFIX)$(prefix)/src/$$d; \ |
98 |
$(INSTALL) -d $(DESTDIR)/$(PREFIX)$(prefix)/src/$$d; \ |
99 |
cp -frL $(top_srcdir)/src/$$d $(PREFIX)$(prefix)/src; \ |
99 |
cp -frL $(top_srcdir)/src/$$d $(DESTDIR)/$(PREFIX)$(prefix)/src; \ |
100 |
done; \ |
100 |
done; \ |
101 |
fi |
101 |
fi |
102 |
if [ -e $(PREFIX)$(prefix)/inc/config.h ]; then \ |
102 |
if [ -e $(DESTDIR)/$(PREFIX)$(prefix)/inc/config.h ]; then \ |
103 |
unlink $(PREFIX)$(prefix)/inc/config.h; \ |
103 |
unlink $(DESTDIR)/$(PREFIX)$(prefix)/inc/config.h; \ |
104 |
fi |
104 |
fi |
105 |
cd $(PREFIX)$(prefix)/inc && ln -s ../config.h config.h |
105 |
cd $(DESTDIR)/$(PREFIX)$(prefix)/inc && ln -s ../config.h config.h |
106 |
cd $(top_srcdir) && cp *.sh $(PREFIX)$(prefix) |
106 |
cd $(top_srcdir) && cp *.sh $(DESTDIR)/$(PREFIX)$(prefix) |
107 |
|
107 |
|
108 |
.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw |
108 |
.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw |