21
21
endif
22
22
23
23
.PHONY : install install-no-systemd
24
- install : install-mercury install-resources install- etc-config install-systemd
25
- install-nosystemd : install-mercury install-resources install- etc-config
24
+ install : install-mercury install-etc-config
25
+ install-nosystemd : install-mercury install-etc-config
26
26
27
27
.PHONY : install-mercury
28
28
install-mercury :
33
33
$(INSTALLDATA) mercury /usr/share/bash-completion/completions/ # note: completion script has same name as binary
34
34
endif
35
35
36
- .PHONY : install-resources
37
- install-resources :
38
- ifneq ($(wildcard src/Makefile) , src/Makefile)
39
- @echo $(COLOR_RED) "error: run ./configure before running make (src/Makefile is missing)" $(COLOR_OFF)
40
- else
41
- cd resources && $(MAKE) install
42
- endif
43
-
44
- # leave this variable empty; we want to force the user to set it, as a
45
- # reminder that they should create a usable local configuration
46
- MERCURY_CFG =
36
+ MERCURY_CFG = mercury.cfg
47
37
.PHONY : install-etc-config
48
38
install-etc-config :
49
39
ifneq ($(wildcard src/Makefile) , src/Makefile)
@@ -53,10 +43,7 @@ ifneq ($(MERCURY_CFG),)
53
43
$(INSTALL) -d /etc/mercury
54
44
$(INSTALLDATA) $(MERCURY_CFG) /etc/mercury/mercury.cfg
55
45
else
56
- @echo $(COLOR_RED) "error: you must specify the configuration file; run as 'make install MERCURY_CFG=filename'" $(COLOR_OFF)
57
- @echo $(COLOR_RED) "where 'filename' is the configuration file you want to use for this installation. You can" $(COLOR_OFF)
58
- @echo $(COLOR_RED) "use mercury.cfg as a template, but you *must* change the interface line to the appropriate" $(COLOR_OFF)
59
- @echo $(COLOR_RED) "network interface for your system. (Use 'cat /proc/net/dev' to see Linux interfaces.)" $(COLOR_OFF)
46
+ @echo $(COLOR_RED) "error: no configuration file specified; run as 'make install MERCURY_CFG=filename'" $(COLOR_OFF)
60
47
@/bin/false
61
48
endif
62
49
endif
@@ -77,7 +64,6 @@ ifneq ($(wildcard src/Makefile), src/Makefile)
77
64
@echo $(COLOR_RED) "error: run ./configure before running make (src/Makefile is missing)" $(COLOR_OFF)
78
65
else
79
66
cd src && $(MAKE) install-nonroot
80
- cd resources && $(MAKE) install-nonroot
81
67
endif
82
68
83
69
.PHONY : install-certtools
99
85
rm -f /etc/mercury/mercury.cfg
100
86
rm -rf /etc/mercury
101
87
cd src && $(MAKE) uninstall
102
- cd resources && $(MAKE) uninstall
103
88
endif
104
89
105
90
.PHONY : uninstall-systemd
@@ -189,10 +174,8 @@ ifneq ($(wildcard src/Makefile), src/Makefile)
189
174
else
190
175
cd src && $(MAKE) distclean
191
176
cd test && $(MAKE) distclean
192
- cd resources && $(MAKE) distclean
193
177
rm -rf autom4te.cache config.log config.status Makefile_helper.mk
194
178
rm -f lib/*.so
195
- -git clean -xf
196
179
endif
197
180
198
181
.PHONY : package-deb
0 commit comments