mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
scripts/usr-bin: scripts.mk -> std-targets.mk
jw-pkg is copied into $(TOPDIR)/bin during build, that's wrong. Write a rule precisely targeted at installing /usr/bin/jw-pkg, and cut all the scripts.mk machinery. Also, make jw-pkg a relative link to avoid the respective RPM warning. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
98ad7442d9
commit
c5c621366b
2 changed files with 11 additions and 4 deletions
|
|
@ -1,7 +1,14 @@
|
||||||
TOPDIR = ../..
|
TOPDIR = ../..
|
||||||
|
|
||||||
EXE_PREFIX = $(ENV_PREFIX)/usr
|
TARGET_DIR = $(ENV_PREFIX)/usr/bin
|
||||||
EXE_SH = jw-pkg
|
|
||||||
|
|
||||||
include $(TOPDIR)/make/proj.mk
|
include $(TOPDIR)/make/proj.mk
|
||||||
include $(JWBDIR)/make/scripts.mk
|
include $(JWBDIR)/make/defs.mk
|
||||||
|
include $(JWBDIR)/make/std-targets.mk
|
||||||
|
|
||||||
|
all:
|
||||||
|
install: install-link.done
|
||||||
|
|
||||||
|
install-link.done:
|
||||||
|
$(INSTALL) -p -D -m $(EXEMODE) -o $(EXEOWNER) -g $(EXEGROUP) jw-pkg $(TARGET_DIR)/jw-pkg
|
||||||
|
touch $@
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
/opt/jw-pkg/bin/jw-pkg.py
|
../../opt/jw-pkg/bin/jw-pkg.py
|
||||||
Loading…
Add table
Add a link
Reference in a new issue