--- Makefile.in.orig 2016-04-26 12:43:30 UTC +++ Makefile.in @@ -3,17 +3,16 @@ MV = mv MKDIR = mkdir -p RMDIR = rm -rf STRIP = strip -AWK = @AWK@ +AWK = /usr/bin/awk PERL = perl -PYTHON = python -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -GNATCOLL_INSTALL = @GNATCOLL_INSTALL@ +PYTHON = $(PYTHON_CMD) +INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM) +INSTALL_DATA = $(BSD_INSTALL_DATA) +GNATCOLL_INSTALL= prefix = @prefix@ -bindir = $(prefix)/bin -sharedir = $(prefix)/share -examplesdir = $(prefix)/share/examples/gps +bindir = $(DESTDIR)$(prefix)/bin +sharedir = $(DESTDIR)$(prefix)/share +examplesdir = $(DESTDIR)$(prefix)/share/examples/gps SYS := $(shell gcc -dumpmachine) @@ -57,20 +56,6 @@ ifeq ($(OS),Windows_NT) share/plug-ins/_subversion_ \ > share/plug-ins/subversion_native_windows.py endif - $(RM) -f $(sharedir)/gps/GPS_old - $(RM) $(sharedir)/gps/library/*.py - $(RM) $(sharedir)/gps/library/*.pyc - $(RM) $(sharedir)/gps/library/*.xml - $(RM) $(sharedir)/gps/plug-ins/*.py - $(RM) $(sharedir)/gps/plug-ins/*.pyc - $(RM) $(sharedir)/gps/plug-ins/*.xml - $(RM) -r $(sharedir)/gps/plug-ins/spark - $(RM) $(sharedir)/gps/support/core/*.py - $(RM) $(sharedir)/gps/support/core/*.pyc - $(RM) $(sharedir)/gps/support/ui/*.py - $(RM) $(sharedir)/gps/support/ui/*.pyc - ${RM} ${sharedir}/gps/perspectives.xml - $(RMDIR) $(sharedir)/gps/templates # update runtime.xml before copying the plug-ins files. cd distrib; $(PERL) from_impunit.pl @@ -80,10 +65,8 @@ ifeq ($(OS),Windows_NT) $(MV) share/plug-ins/_subversion_ share/plug-ins/subversion.py $(RM) share/plug-ins/subversion_native_windows.py endif - (cd share; tar cf - plug-ins/spark/*.py) | (cd $(sharedir)/gps; tar xf -) (cd share; tar cf - plug-ins/images/*.png) | (cd $(sharedir)/gps; tar xf -) (cd share; tar cf - library/*.py) | (cd $(sharedir)/gps; tar xf -) - (cd share; tar cf - library/GPS_old/*.py) | (cd $(sharedir)/gps; tar xf -) (cd share; tar cf - support/) | (cd $(sharedir)/gps; tar xf -) -${PYTHON} distrib/gnat_switches.py > $(sharedir)/gps/support/core/gnat_switches.py $(RM) $(sharedir)/gps/plug-ins/emacs.xml @@ -121,7 +104,7 @@ endif endif $(MAKE) -C common/expect install else - $(INSTALL_PROGRAM) gps/obj/gps $(bindir) + $(INSTALL_PROGRAM) gps/obj/gps $(bindir)/gps_exe $(INSTALL_PROGRAM) cli/obj/gnatdoc $(bindir) $(INSTALL_PROGRAM) cli/obj/gps_cli $(bindir) $(INSTALL_PROGRAM) spark/obj/gnatspark $(bindir)