ports: enable re-preparation of contrib code

Avoid warnings of missing patches directory

Fixes #832
This commit is contained in:
Stefan Kalkowski 2013-08-13 15:40:51 +02:00 committed by Norman Feske
parent 0c22f3da75
commit 55e1c16c98
2 changed files with 5 additions and 8 deletions

View File

@ -19,13 +19,7 @@ $(CONTRIB_DIR)/$(ETC):
$(ECHO) "checking out 'etc' to '$@'"
$(VERBOSE)svn export $(ETC_SVN_BASE)/etc $@
checkout-etc: $(CONTRIB_DIR)/$(ETC)
apply_patches-etc: checkout-etc
$(VERBOSE)find ./src/noux-pkg/etc/patches/ -name "*.patch" |\
xargs -ixxx sh -c "patch -p0 -r - -N -d $(CONTRIB_DIR)/$(ETC) < xxx" || true
prepare:: apply_patches-etc
prepare:: $(CONTRIB_DIR)/$(ETC)
clean-etc:
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(ETC)

View File

@ -45,7 +45,10 @@ GDB_CONTENT := gdb/regformats/regdat.sh \
#
PORTS += $(GDB)
prepare:: $(CONTRIB_DIR)/$(GDB)/configure generated_files
prepare:: clean-gdb $(CONTRIB_DIR)/$(GDB)/configure generated_files
clean-gdb:
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(GDB)
#
# Port-specific local rules