Browse code

- fix: s/-/_/ in exported Makefile vars (some shells don't support '-' in variables)

Andrei Pelinescu-Onciul authored on 08/05/2007 09:03:11
Showing 5 changed files
... ...
@@ -410,7 +410,7 @@ modules-doc:
410 410
 .PHONY: install
411 411
 install: install-bin install-modules install-cfg \
412 412
 	install-doc install-man install-utils
413
-		mv -f $(bin-prefix)/$(bin-dir)/sc $(bin-prefix)/$(bin-dir)/serctl #fix
413
+		mv -f $(bin_prefix)/$(bin_dir)/sc $(bin_prefix)/$(bin_dir)/serctl #fix
414 414
 
415 415
 .PHONY: dbinstall
416 416
 dbinstall:
... ...
@@ -418,50 +418,53 @@ dbinstall:
418 418
 	scripts/mysql/ser_mysql.sh create
419 419
 	-@echo "Done"
420 420
 
421
-mk-install-dirs: $(cfg-prefix)/$(cfg-dir) $(bin-prefix)/$(bin-dir) \
422
-			$(modules-prefix)/$(modules-dir) $(doc-prefix)/$(doc-dir) \
423
-			$(man-prefix)/$(man-dir)/man8 $(man-prefix)/$(man-dir)/man5
421
+mk-install_dirs: $(cfg_prefix)/$(cfg_dir) $(bin_prefix)/$(bin_dir) \
422
+			$(modules_prefix)/$(modules_dir) $(doc_prefix)/$(doc_dir) \
423
+			$(man_prefix)/$(man_dir)/man8 $(man_prefix)/$(man_dir)/man5
424 424
 
425 425
 
426
-$(cfg-prefix)/$(cfg-dir): 
427
-		mkdir -p $(cfg-prefix)/$(cfg-dir)
426
+$(cfg_prefix)/$(cfg_dir): 
427
+		mkdir -p $(cfg_prefix)/$(cfg_dir)
428 428
 
429
-$(bin-prefix)/$(bin-dir):
430
-		mkdir -p $(bin-prefix)/$(bin-dir)
429
+$(bin_prefix)/$(bin_dir):
430
+		mkdir -p $(bin_prefix)/$(bin_dir)
431 431
 
432
-$(modules-prefix)/$(modules-dir):
433
-		mkdir -p $(modules-prefix)/$(modules-dir)
432
+$(modules_prefix)/$(modules_dir):
433
+		mkdir -p $(modules_prefix)/$(modules_dir)
434 434
 
435 435
 
436
-$(doc-prefix)/$(doc-dir):
437
-		mkdir -p $(doc-prefix)/$(doc-dir)
436
+$(doc_prefix)/$(doc_dir):
437
+		mkdir -p $(doc_prefix)/$(doc_dir)
438 438
 
439
-$(man-prefix)/$(man-dir)/man8:
440
-		mkdir -p $(man-prefix)/$(man-dir)/man8
439
+$(man_prefix)/$(man_dir)/man8:
440
+		mkdir -p $(man_prefix)/$(man_dir)/man8
441 441
 
442
-$(man-prefix)/$(man-dir)/man5:
443
-		mkdir -p $(man-prefix)/$(man-dir)/man5
442
+$(man_prefix)/$(man_dir)/man5:
443
+		mkdir -p $(man_prefix)/$(man_dir)/man5
444 444
 		
445 445
 # note: on solaris 8 sed: ? or \(...\)* (a.s.o) do not work
446
-install-cfg: $(cfg-prefix)/$(cfg-dir)
447
-		sed -e "s#/usr/.*lib/ser/modules/#$(modules-target)#g" \
448
-			< etc/ser.cfg > $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
449
-		chmod 644 $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
446
+install-cfg: $(cfg_prefix)/$(cfg_dir)
447
+		sed -e "s#/usr/.*lib/ser/modules/#$(modules_target)#g" \
448
+			< etc/ser.cfg > $(cfg_prefix)/$(cfg_dir)ser.cfg.sample
449
+		chmod 644 $(cfg_prefix)/$(cfg_dir)ser.cfg.sample
450 450
 		if [ -z "${skip_cfg_install}" -a \
451
-				! -f $(cfg-prefix)/$(cfg-dir)ser.cfg ]; then \
452
-			mv -f $(cfg-prefix)/$(cfg-dir)ser.cfg.sample \
453
-				$(cfg-prefix)/$(cfg-dir)ser.cfg; \
451
+				! -f $(cfg_prefix)/$(cfg_dir)ser.cfg ]; then \
452
+			mv -f $(cfg_prefix)/$(cfg_dir)ser.cfg.sample \
453
+				$(cfg_prefix)/$(cfg_dir)ser.cfg; \
454 454
 		fi
455 455
 		# radius dictionary
456
-		$(INSTALL-TOUCH) $(cfg-prefix)/$(cfg-dir)/dictionary.ser 
457
-		$(INSTALL-CFG) etc/dictionary.ser $(cfg-prefix)/$(cfg-dir)
458
-#		$(INSTALL-CFG) etc/ser.cfg $(cfg-prefix)/$(cfg-dir)
456
+		$(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/dictionary.ser 
457
+		$(INSTALL_CFG) etc/dictionary.ser $(cfg_prefix)/$(cfg_dir)
458
+#		$(INSTALL_CFG) etc/ser.cfg $(cfg_prefix)/$(cfg_dir)
459 459
 
460
-install-bin: $(bin-prefix)/$(bin-dir) $(NAME)
461
-		$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/$(NAME)
462
-		$(INSTALL-BIN) $(NAME) $(bin-prefix)/$(bin-dir)
460
+install-bin: $(bin_prefix)/$(bin_dir) $(NAME)
461
+		$(INSTALL_TOUCH) $(bin_prefix)/$(bin_dir)/$(NAME)
462
+		$(INSTALL_BIN) $(NAME) $(bin_prefix)/$(bin_dir)
463 463
 
464
-install-modules: $(modules-prefix)/$(modules-dir)
464
+
465
+export INSTALL_TOUCH RELEASE
466
+
467
+install-modules: $(modules_prefix)/$(modules_dir)
465 468
 	@for r in $(modules) "" ; do \
466 469
 		if [ -n "$$r" -a -r "$$r/Makefile" ]; then \
467 470
 			echo  "" ; \
... ...
@@ -474,13 +477,13 @@ install-modules: $(modules-prefix)/$(modules-dir)
474 474
 		fi ; \
475 475
 	done; true
476 476
 
477
-install-utils: utils $(bin-prefix)/$(bin-dir)
477
+install-utils: utils $(bin_prefix)/$(bin_dir)
478 478
 	@for r in $(utils_install) "" ; do \
479 479
 		if [ -n "$$r" ]; then \
480 480
 			if [ -f "$$r" ]; then \
481
-				$(INSTALL-TOUCH) \
482
-					$(bin-prefix)/$(bin-dir)/`basename "$$r"` ; \
483
-				$(INSTALL-BIN)  "$$r"  $(bin-prefix)/$(bin-dir) ; \
481
+				$(INSTALL_TOUCH) \
482
+					$(bin_prefix)/$(bin_dir)/`basename "$$r"` ; \
483
+				$(INSTALL_BIN)  "$$r"  $(bin_prefix)/$(bin_dir) ; \
484 484
 			else \
485 485
 				echo "ERROR: $$r not compiled" ; \
486 486
 				if [ ${err_fail} = 1 ] ; then \
... ...
@@ -495,46 +498,46 @@ install-utils: utils $(bin-prefix)/$(bin-dir)
495 495
 install-modules-all: install-modules install-modules-doc
496 496
 
497 497
 
498
-install-doc: $(doc-prefix)/$(doc-dir) install-modules-doc
499
-	$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/INSTALL 
500
-	$(INSTALL-DOC) INSTALL $(doc-prefix)/$(doc-dir)
501
-	$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/README-MODULES 
502
-	$(INSTALL-DOC) README-MODULES $(doc-prefix)/$(doc-dir)
503
-	$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/AUTHORS 
504
-	$(INSTALL-DOC) AUTHORS $(doc-prefix)/$(doc-dir)
505
-	$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/NEWS
506
-	$(INSTALL-DOC) NEWS $(doc-prefix)/$(doc-dir)
507
-	$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/README 
508
-	$(INSTALL-DOC) README $(doc-prefix)/$(doc-dir)
498
+install-doc: $(doc_prefix)/$(doc_dir) install-modules-doc
499
+	$(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/INSTALL 
500
+	$(INSTALL_DOC) INSTALL $(doc_prefix)/$(doc_dir)
501
+	$(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/README_MODULES 
502
+	$(INSTALL_DOC) README_MODULES $(doc_prefix)/$(doc_dir)
503
+	$(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/AUTHORS 
504
+	$(INSTALL_DOC) AUTHORS $(doc_prefix)/$(doc_dir)
505
+	$(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/NEWS
506
+	$(INSTALL_DOC) NEWS $(doc_prefix)/$(doc_dir)
507
+	$(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/README 
508
+	$(INSTALL_DOC) README $(doc_prefix)/$(doc_dir)
509 509
 
510 510
 
511
-install-modules-doc: $(doc-prefix)/$(doc-dir)
511
+install-modules-doc: $(doc_prefix)/$(doc_dir)
512 512
 	@for r in $(modules_basenames) "" ; do \
513 513
 		if [ -n "$$r" ]; then \
514 514
 			if [ -f modules/"$$r"/README ]; then \
515
-				$(INSTALL-TOUCH)  $(doc-prefix)/$(doc-dir)/README ; \
516
-				$(INSTALL-DOC)  modules/"$$r"/README  \
517
-									$(doc-prefix)/$(doc-dir)/README ; \
518
-				mv -f $(doc-prefix)/$(doc-dir)/README \
519
-						$(doc-prefix)/$(doc-dir)/README."$$r" ; \
515
+				$(INSTALL_TOUCH)  $(doc_prefix)/$(doc_dir)/README ; \
516
+				$(INSTALL_DOC)  modules/"$$r"/README  \
517
+									$(doc_prefix)/$(doc_dir)/README ; \
518
+				mv -f $(doc_prefix)/$(doc_dir)/README \
519
+						$(doc_prefix)/$(doc_dir)/README."$$r" ; \
520 520
 			fi ; \
521 521
 		fi ; \
522 522
 	done 
523 523
 
524 524
 
525
-install-man: $(man-prefix)/$(man-dir)/man8 $(man-prefix)/$(man-dir)/man5
526
-		sed -e "s#/etc/ser/ser\.cfg#$(cfg-target)ser.cfg#g" \
527
-			-e "s#/usr/sbin/#$(bin-target)#g" \
528
-			-e "s#/usr/lib/ser/modules/#$(modules-target)#g" \
529
-			-e "s#/usr/share/doc/ser/#$(doc-target)#g" \
530
-			< ser.8 >  $(man-prefix)/$(man-dir)/man8/ser.8
531
-		chmod 644  $(man-prefix)/$(man-dir)/man8/ser.8
532
-		sed -e "s#/etc/ser/ser\.cfg#$(cfg-target)ser.cfg#g" \
533
-			-e "s#/usr/sbin/#$(bin-target)#g" \
534
-			-e "s#/usr/lib/ser/modules/#$(modules-target)#g" \
535
-			-e "s#/usr/share/doc/ser/#$(doc-target)#g" \
536
-			< ser.cfg.5 >  $(man-prefix)/$(man-dir)/man5/ser.cfg.5
537
-		chmod 644  $(man-prefix)/$(man-dir)/man5/ser.cfg.5
525
+install-man: $(man_prefix)/$(man_dir)/man8 $(man_prefix)/$(man_dir)/man5
526
+		sed -e "s#/etc/ser/ser\.cfg#$(cfg_target)ser.cfg#g" \
527
+			-e "s#/usr/sbin/#$(bin_target)#g" \
528
+			-e "s#/usr/lib/ser/modules/#$(modules_target)#g" \
529
+			-e "s#/usr/share/doc/ser/#$(doc_target)#g" \
530
+			< ser.8 >  $(man_prefix)/$(man_dir)/man8/ser.8
531
+		chmod 644  $(man_prefix)/$(man_dir)/man8/ser.8
532
+		sed -e "s#/etc/ser/ser\.cfg#$(cfg_target)ser.cfg#g" \
533
+			-e "s#/usr/sbin/#$(bin_target)#g" \
534
+			-e "s#/usr/lib/ser/modules/#$(modules_target)#g" \
535
+			-e "s#/usr/share/doc/ser/#$(doc_target)#g" \
536
+			< ser.cfg.5 >  $(man_prefix)/$(man_dir)/man5/ser.cfg.5
537
+		chmod 644  $(man_prefix)/$(man_dir)/man5/ser.cfg.5
538 538
 
539 539
 
540 540
 ##################
... ...
@@ -12,7 +12,7 @@
12 12
 # History:
13 13
 # --------
14 14
 #              created by andrei
15
-#  2003-02-24  added LOCALBASE, fixed doc-dir for freebsd - patch provided
15
+#  2003-02-24  added LOCALBASE, fixed doc_dir for freebsd - patch provided
16 16
 #               by Maxim Sobolev <sobomax@FreeBSD.org>
17 17
 #  2003-02-25  added -DDISABLE_NAGLE (andrei)
18 18
 #  2003-03-02  added -DDIGEST_DOMAIN (janakj)
... ...
@@ -54,7 +54,7 @@
54 54
 #  2007-02-09  added TLS_HOOKS and CORE_TLS support, obsoleted TLS=1
55 55
 #              added TLS_EXTRA_LIBS (andrei)
56 56
 #  2007-03-16  added LIB building options: LIB_LDFLAGS, LIB_SONAME, LIB_RPATH,
57
-#                INSTALL-LIB, libraries install paths (andrei)
57
+#                INSTALL_LIB, libraries install paths (andrei)
58 58
 
59 59
 
60 60
 # check if already included/exported
... ...
@@ -122,37 +122,37 @@ endif
122 122
 CC_EXTRA_OPTS ?=
123 123
 
124 124
 # dirs 
125
-cfg-dir = etc/ser/
126
-bin-dir = sbin/
127
-modules-dir = lib/ser/modules/
128
-lib-dir = lib/ser/
125
+cfg_dir = etc/ser/
126
+bin_dir = sbin/
127
+modules_dir = lib/ser/modules/
128
+lib_dir = lib/ser/
129 129
 ifeq ($(OS), linux)
130
-	doc-dir = share/doc/ser/
131
-	man-dir = share/man/
130
+	doc_dir = share/doc/ser/
131
+	man_dir = share/man/
132 132
 	LOCALBASE ?= /usr/local
133 133
 else
134 134
 ifeq ($(OS), freebsd)
135
-	doc-dir = share/doc/ser/
136
-	man-dir = man/
135
+	doc_dir = share/doc/ser/
136
+	man_dir = man/
137 137
 	LOCALBASE ?= /usr/local
138 138
 else
139 139
 ifeq ($(OS), openbsd)
140
-	doc-dir = share/doc/ser/
141
-	man-dir = man/
140
+	doc_dir = share/doc/ser/
141
+	man_dir = man/
142 142
 	LOCALBASE ?= /usr/local
143 143
 else
144 144
 ifeq ($(OS), netbsd)
145
-	doc-dir = share/doc/ser
146
-	man-dir = man/
145
+	doc_dir = share/doc/ser
146
+	man_dir = man/
147 147
 	LOCALBASE ?= /usr/pkg
148 148
 else
149 149
 ifeq ($(OS), darwin)
150
-	doc-dir = share/doc/ser/
151
-	man-dir = man/
150
+	doc_dir = share/doc/ser/
151
+	man_dir = man/
152 152
 	LOCALBASE ?= /usr/local
153 153
 else
154
-	doc-dir = doc/ser/
155
-	man-dir = man/
154
+	doc_dir = doc/ser/
155
+	man_dir = man/
156 156
 	LOCALBASE ?= /usr/local
157 157
 endif
158 158
 endif
... ...
@@ -173,21 +173,21 @@ prefix = $(PREFIX)
173 173
 BASEDIR ?=
174 174
 basedir = $(BASEDIR)
175 175
 # install prefixes for various stuff
176
-cfg-prefix = $(basedir)$(prefix)
177
-bin-prefix = $(basedir)$(prefix)
178
-modules-prefix = $(basedir)$(prefix)
179
-lib-prefix = $(basedir)$(prefix)
180
-doc-prefix = $(basedir)$(prefix)
181
-man-prefix = $(basedir)$(prefix)
182
-ut-prefix = $(basedir)$(prefix)
176
+cfg_prefix = $(basedir)$(prefix)
177
+bin_prefix = $(basedir)$(prefix)
178
+modules_prefix = $(basedir)$(prefix)
179
+lib_prefix = $(basedir)$(prefix)
180
+doc_prefix = $(basedir)$(prefix)
181
+man_prefix = $(basedir)$(prefix)
182
+ut_prefix = $(basedir)$(prefix)
183 183
 
184 184
 
185 185
 # target dirs for various stuff
186
-cfg-target = $(prefix)/$(cfg-dir)
187
-bin-target = $(prefix)/$(bin-dir)
188
-modules-target = $(prefix)/$(modules-dir)
189
-lib-target = $(prefix)/$(lib-dir)
190
-doc-target = $(prefix)/$(doc-dir)
186
+cfg_target = $(prefix)/$(cfg_dir)
187
+bin_target = $(prefix)/$(bin_dir)
188
+modules_target = $(prefix)/$(modules_dir)
189
+lib_target = $(prefix)/$(lib_dir)
190
+doc_target = $(prefix)/$(doc_dir)
191 191
 
192 192
 
193 193
 ifeq ($(OS), solaris)
... ...
@@ -199,14 +199,14 @@ INSTALL ?= install
199 199
 TAR ?= tar
200 200
 endif
201 201
 
202
-INSTALL-TOUCH = touch          # used to create the file first (good to 
202
+INSTALL_TOUCH = touch          # used to create the file first (good to 
203 203
                                #  make solaris install work)
204
-INSTALL-CFG = $(INSTALL) -m 644
205
-INSTALL-BIN = $(INSTALL) -m 755
206
-INSTALL-MODULES = $(INSTALL) -m 755
207
-INSTALL-LIB = $(INSTALL) -m 755
208
-INSTALL-DOC = $(INSTALL) -m 644
209
-INSTALL-MAN = $(INSTALL) -m 644
204
+INSTALL_CFG = $(INSTALL) -m 644
205
+INSTALL_BIN = $(INSTALL) -m 755
206
+INSTALL_MODULES = $(INSTALL) -m 755
207
+INSTALL_LIB = $(INSTALL) -m 755
208
+INSTALL_DOC = $(INSTALL) -m 644
209
+INSTALL_MAN = $(INSTALL) -m 644
210 210
 
211 211
 #set some vars from the environment (and not make builtins)
212 212
 CC   := $(shell echo "$${CC}")
... ...
@@ -392,7 +392,7 @@ DEFS+= $(extra_defs) \
392 392
 	 -DNAME='"$(MAIN_NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
393 393
 	 -DOS='$(OS)_' -DOS_QUOTED='"$(OS)"' -DCOMPILER='"$(CC_VER)"' -D__CPU_$(ARCH) -D__OS_$(OS) \
394 394
 	 -DSER_VER=$(SER_VER) \
395
-	 -DCFG_DIR='"$(cfg-target)"'\
395
+	 -DCFG_DIR='"$(cfg_target)"'\
396 396
 	 -DPKG_MALLOC \
397 397
 	 -DSHM_MEM  -DSHM_MMAP \
398 398
 	 -DDNS_IP_HACK \
... ...
@@ -1506,10 +1506,10 @@ export LIBS
1506 1506
 export LEX YACC YACC_FLAGS
1507 1507
 export PREFIX LOCALBASE
1508 1508
 export TAR
1509
-export cfg-prefix cfg-dir bin-prefix bin-dir modules-prefix modules-dir
1510
-export doc-prefix doc-dir man-prefix man-dir ut-prefix ut-dir
1511
-export lib-prefix lib-dir cfg-target lib-target modules-target
1512
-export INSTALL INSTALL-CFG INSTALL-BIN INSTALL-MODULES INSTALL-DOC INSTALL-MAN 
1513
-export INSTALL-LIB INSTALL-TOUCH
1509
+export cfg_prefix cfg_dir bin_prefix bin_dir modules_prefix modules_dir
1510
+export doc_prefix doc_dir man_prefix man_dir ut_prefix ut_dir
1511
+export lib_prefix lib_dir cfg_target lib_target modules_target
1512
+export INSTALL INSTALL_CFG INSTALL_BIN INSTALL_MODULES INSTALL_DOC INSTALL_MAN 
1513
+export INSTALL_LIB INSTALL_TOUCH
1514 1514
 
1515 1515
 endif  # ifeq ($(makefile_defs, 1)
... ...
@@ -86,23 +86,23 @@ link_clean:
86 86
 
87 87
 clean: link_clean
88 88
 
89
-$(lib-prefix)/$(lib-dir):
90
-	mkdir -p $(lib-prefix)/$(lib-dir)
89
+$(lib_prefix)/$(lib_dir):
90
+	mkdir -p $(lib_prefix)/$(lib_dir)
91 91
 
92 92
 .PHONY: install
93
-install: $(LIB_NAME) $(lib-prefix)/$(lib-dir)
94
-	$(INSTALL-TOUCH) $(lib-prefix)/$(lib-dir)/$(LIB_NAME)
95
-	$(INSTALL-LIB) $(LIB_NAME) $(lib-prefix)/$(lib-dir)
96
-	rm -f $(lib-prefix)/$(lib-dir)/$(LIB_RUNTIME_NAME) \
97
-			$(lib-prefix)/$(lib-dir)/$(LIB_LINK_NAME) 
98
-	ln -s $(lib-prefix)/$(lib-dir)/$(LIB_NAME) \
99
-			$(lib-prefix)/$(lib-dir)/$(LIB_RUNTIME_NAME) 
100
-	ln -s $(lib-prefix)/$(lib-dir)/$(LIB_NAME) \
101
-			$(lib-prefix)/$(lib-dir)/$(LIB_LINK_NAME) 
93
+install: $(LIB_NAME) $(lib_prefix)/$(lib_dir)
94
+	$(INSTALL_TOUCH) $(lib_prefix)/$(lib_dir)/$(LIB_NAME)
95
+	$(INSTALL_LIB) $(LIB_NAME) $(lib_prefix)/$(lib_dir)
96
+	rm -f $(lib_prefix)/$(lib_dir)/$(LIB_RUNTIME_NAME) \
97
+			$(lib_prefix)/$(lib_dir)/$(LIB_LINK_NAME) 
98
+	ln -s $(lib_prefix)/$(lib_dir)/$(LIB_NAME) \
99
+			$(lib_prefix)/$(lib_dir)/$(LIB_RUNTIME_NAME) 
100
+	ln -s $(lib_prefix)/$(lib_dir)/$(LIB_NAME) \
101
+			$(lib_prefix)/$(lib_dir)/$(LIB_LINK_NAME) 
102 102
 
103 103
 
104 104
 .PHONY:install-if-newer
105
-install-if-newer: $(lib-prefix)/$(lib-dir)/$(LIB_RUNTIME_NAME) 
105
+install-if-newer: $(lib_prefix)/$(lib_dir)/$(LIB_RUNTIME_NAME) 
106 106
 
107
-$(lib-prefix)/$(lib-dir)/$(LIB_RUNTIME_NAME): $(LIB_NAME)
107
+$(lib_prefix)/$(lib_dir)/$(LIB_RUNTIME_NAME): $(LIB_NAME)
108 108
 	@$(MAKE) install
... ...
@@ -53,14 +53,15 @@ endif
53 53
 include $(COREPATH)/Makefile.rules
54 54
 
55 55
 
56
-$(modules-prefix)/$(modules-dir):
57
-		mkdir -p $(modules-prefix)/$(modules-dir)
56
+$(modules_prefix)/$(modules_dir):
57
+		mkdir -p $(modules_prefix)/$(modules_dir)
58
+
58 59
 
59 60
 
60 61
 .PHONY: install
61
-install: $(NAME) $(modules-prefix)/$(modules-dir)
62
-	$(INSTALL-TOUCH) $(modules-prefix)/$(modules-dir)/$(NAME)
63
-	$(INSTALL-MODULES)  $(NAME)  $(modules-prefix)/$(modules-dir)
62
+install: $(NAME) $(modules_prefix)/$(modules_dir)
63
+	$(INSTALL_TOUCH) $(modules_prefix)/$(modules_dir)/$(NAME)
64
+	$(INSTALL_MODULES)  $(NAME)  $(modules_prefix)/$(modules_dir)
64 65
 	@for lib in $(dir $(SER_LIBS)); do \
65 66
 		$(MAKE) -C "$${lib}" install-if-newer ;\
66 67
 	done
... ...
@@ -37,7 +37,7 @@
37 37
 ifneq	($(SER_LIBS),)
38 38
 ifneq	($(LD_RPATH),)
39 39
 ifneq	(,$(filter install, $(MAKECMDGOALS)))
40
-SER_RPATH_LST:=$(lib-target)
40
+SER_RPATH_LST:=$(lib_target)
41 41
 else
42 42
 SER_RPATH_LST:=$(realpath $(dir $(SER_LIBS)))
43 43
 endif