Fix makefile fuction
This commit is contained in:
12
Makefile
12
Makefile
@@ -3,10 +3,10 @@ VERSION = $(shell git describe | sed 's/-/./g')
|
||||
BRANCH = $(shell git branch --show-current)
|
||||
|
||||
define rpm_eval
|
||||
shell rpm --eval '%{$(1)}'
|
||||
rpm --eval '%{$(1)}'
|
||||
endef
|
||||
|
||||
TARBALL_PATH = $(call rpm_eval _sourcedir)/$(NAME)-$(VERSION).tar.gz
|
||||
TARBALL_PATH = $(call rpm_eval,_sourcedir)/$(NAME)-$(VERSION).tar.gz
|
||||
|
||||
.PHONY: name
|
||||
name:
|
||||
@@ -28,7 +28,7 @@ tarball: $(TARBALL_PATH)
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
install --directory $(DESTDIR)$(call rpm_eval _sysconfdir)/netoik-rp
|
||||
install --target-directory=$(DESTDIR)$(call rpm_eval _sysconfdir)/netoik-rp/ conf/neotik-rp.conf
|
||||
install --target-directory=$(DESTDIR)$(call rpm_eval _sysconfdir)/netoik-rp/ conf/ovh.ini
|
||||
install --target-directory=$(DESTDIR)$(call rpm_eval _unitdir)/ services/netoik-rp.service
|
||||
install --directory $(DESTDIR)$(call rpm_eval,_sysconfdir)/netoik-rp
|
||||
install --target-directory=$(DESTDIR)$(call rpm_eval,_sysconfdir)/netoik-rp/ conf/neotik-rp.conf
|
||||
install --target-directory=$(DESTDIR)$(call rpm_eval,_sysconfdir)/netoik-rp/ conf/ovh.ini
|
||||
install --target-directory=$(DESTDIR)$(call rpm_eval,_unitdir)/ services/netoik-rp.service
|
||||
|
||||
Reference in New Issue
Block a user