mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
jw-pkg supports more than RPM-based package managers, but for historic reasons, lots of its Makefile variables still have "RPM" in their names. This is misleading. Replace "RPM" in variable names by the more generic "PKG" where appropriate. Signed-off-by: Jan Lindemann <jan@janware.com>
33 lines
901 B
Makefile
33 lines
901 B
Makefile
ifeq ($(VCS),cvs)
|
|
WD_PKG_VCS_SUFFIX = -cvs
|
|
WD_PKG_VCS_FILES = $(shell find . -name CVS)
|
|
else ifeq ($(VCS),git)
|
|
WD_PKG_VCS_SUFFIX = -git
|
|
WD_PKG_VCS_FILES = .git
|
|
endif
|
|
|
|
WD_PKG_DIR = dist/wd
|
|
WD_PKG_BASE_NAME = $(PKG_PROJECT)$(WD_PKG_VCS_SUFFIX)-$(PKG_VERSION)
|
|
WD_PKG = $(WD_PKG_BASE_NAME).tar.bz2
|
|
WD_PKG_PATH = $(WD_PKG_DIR)/$(WD_PKG)
|
|
|
|
# -- upload-defs.mk variables
|
|
UPLOAD_FILES += $(WD_PKG_PATH)
|
|
UPLOAD_SRC_DIR = $(WD_PKG_DIR)
|
|
|
|
include $(JWBDIR)/make/upload-defs.mk
|
|
|
|
all:
|
|
clean: wd-clean
|
|
|
|
wd-clean:
|
|
rm -rf $(WD_PKG_DIR)
|
|
|
|
$(WD_PKG_DIR):
|
|
mkdir -p $@
|
|
|
|
$(WD_PKG_PATH): | $(WD_PKG_DIR)
|
|
make -s list-files | xargs echo $(WD_PKG_VCS_FILES) | xargs tar --transform "s|^|$(WD_PKG_BASE_NAME)/|" -cjf $(WD_PKG_PATH)
|
|
|
|
wd-upload: $(WD_PKG_PATH)
|
|
make $(REMOTE_TARGETS)
|