Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 533408
Collapse All | Expand All

(-)Makefile.am.old (-16 / +16 lines)
Lines 82-108 Link Here
82
	cd $(top_builddir)/adm/lin/amk && $(MAKE) $(AM_MAKEFLAGS) Draw
82
	cd $(top_builddir)/adm/lin/amk && $(MAKE) $(AM_MAKEFLAGS) Draw
83
83
84
install-exec-local:
84
install-exec-local:
85
	$(INSTALL) -d $(prefix)/$(platform)
85
	$(INSTALL) -d $(DESTDIR)$(prefix)/$(platform)
86
	if [ -e $(prefix)/bin -a ! -e $(prefix)/$(platform)/bin ]; then \
86
	if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(platform)/bin ]; then \
87
		cd $(prefix)/$(platform) && ln -s ../bin bin; \
87
		cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../bin bin; \
88
	fi
88
	fi
89
	if [ -e $(prefix)/lib -a ! -e $(prefix)/$(platform)/lib ]; then \
89
	if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(platform)/lib ]; then \
90
		cd $(prefix)/$(platform) && ln -s ../lib lib; \
90
		cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../lib lib; \
91
	fi
91
	fi
92
	buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(prefix); installd=`pwd`; cd $$buildd; \
92
	buildd=`pwd`; cd $(top_srcdir); sourced=`pwd`; cd $(DESTDIR)$(prefix); installd=`pwd`; cd $$buildd; \
93
	if [ "$$installd" != "$$sourced" ]; then \
93
	if [ "$$installd" != "$$sourced" ]; then \
94
		$(INSTALL) -d $(prefix)/inc; \
94
		$(INSTALL) -d $(DESTDIR)$(prefix)/inc; \
95
		cp -frL $(top_srcdir)/inc $(prefix); \
95
		cp -frL $(top_srcdir)/inc $(DESTDIR)$(prefix); \
96
		cp -frL $$buildd/config.h $(prefix); \
96
		cp -frL $$buildd/config.h $(DESTDIR)$(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)/src/$$d; \
98
			$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
99
			cp -frL $(top_srcdir)/src/$$d $(prefix)/src; \
99
			cp -frL $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
100
		done; \
100
		done; \
101
	fi
101
	fi
102
	if [ -e $(prefix)/inc/config.h ]; then \
102
	if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \
103
		rm -f $(prefix)/inc/config.h; \
103
		rm -f $(DESTDIR)$(prefix)/inc/config.h; \
104
	fi
104
	fi
105
	cd $(prefix)/inc && ln -s ../config.h config.h
105
	cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h
106
	cd $(top_srcdir) && cp *.sh $(prefix)
106
	cd $(top_srcdir) && cp *.sh $(DESTDIR)$(prefix)
107
107
108
.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw
108
.PHONY: FoundationClasses ModelingData ModelingAlgorithms Visualization ApplicationFramework DataExchange Draw

Return to bug 533408