blob: 176596a0268ba0e1727a9bd8fdb0373598c39f77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
--- 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)
|