Skip to content

Commit

Permalink
copy.mk: noarch may have no staging/_var directory
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Sep 13, 2021
1 parent d17b9c4 commit 00d269f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mk/spksrc.copy.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ copy_target: $(PRE_COPY_TARGET) $(INSTALL_PLIST)
# Copy target to staging
(cd $(INSTALL_DIR)/$(INSTALL_PREFIX) && tar cpf - `cat $(INSTALL_PLIST) | cut -d':' -f2`) | \
tar xpf - -C $(STAGING_DIR)
# Copy non-target to STAGING_SPK*
(cd $(INSTALL_DIR)/$(INSTALL_PREFIX_VAR) && find . -mindepth 1 -maxdepth 1 | tar cpf - --files-from=/dev/stdin) | \
tar xpf - -C $(STAGING_SPKVAR)
# Copy non-target to STAGING_SPK* if directory exists
@if [ -d $(INSTALL_DIR)/$(INSTALL_PREFIX_VAR) ] ;
then \
(cd $(INSTALL_DIR)/$(INSTALL_PREFIX_VAR) && find . -mindepth 1 -maxdepth 1 | tar cpf - --files-from=/dev/stdin) | \
tar xpf - -C $(STAGING_SPKVAR) ;
fi

post_copy_target: $(COPY_TARGET)

Expand Down

0 comments on commit 00d269f

Please sign in to comment.