mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
defs.mk: Support SYSCFG and INIT installation types
- Add definitions for automatic SYSCFG installation rules - Add definitions for automatic INIT installation from .init files
This commit is contained in:
parent
90c02b1be3
commit
e05fbcbc20
1 changed files with 8 additions and 0 deletions
|
|
@ -202,6 +202,12 @@ BUILD_CFGDIR = $(TOPDIR)/conf
|
|||
INSTALL_CFGDIR = $(CONFIG_DIR)
|
||||
INSTALLED_CFG ?= $(addprefix $(INSTALL_CFGDIR)/,$(wildcard *.conf))
|
||||
|
||||
# -- SYSCFG
|
||||
SYSCFG_FILES += $(basename $(wildcard *.sysconf))
|
||||
BUILD_SYSCFG = $(TOPDIR)/conf
|
||||
INSTALL_SYSCFGDIR = $(SYSCONFIG_PREFIX)
|
||||
INSTALLED_SYSCFG ?= $(addprefix $(INSTALL_SYSCFGDIR)/,$(SYSCFG_FILES))
|
||||
|
||||
# -- HDR
|
||||
# why both SRC_H <-> LOCAL_H?
|
||||
BUILD_HDRDIR = $(TOPDIR)/include
|
||||
|
|
@ -291,6 +297,8 @@ INSTALLED_SCRIPT += $(addprefix $(INSTALL_EXEDIR)/,$(EXE_SH))
|
|||
# -- INIT
|
||||
BUILD_INITDIR = $(TOPDIR)/bin
|
||||
INSTALL_INITDIR = $(INIT_PREFIX)/init.d
|
||||
_INIT_SCRIPTS = $(basename $(wildcard *.init))
|
||||
INIT_SCRIPTS += $(_INIT_SCRIPTS)
|
||||
BUILD_INIT += $(addprefix $(BUILD_INITDIR)/,$(INIT_SCRIPTS))
|
||||
INSTALLED_INIT += $(addprefix $(INSTALL_INITDIR)/,$(INIT_SCRIPTS))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue