customize.mk 797 B

1234567891011121314151617181920212223242526272829303132
  1. #############################################################
  2. #
  3. # Any custom stuff you feel like doing....
  4. #
  5. #############################################################
  6. CUST_DIR:=package/customize/source
  7. $(BUILD_DIR)/.customize:
  8. rm -f $(BUILD_DIR)/series
  9. (cd $(CUST_DIR); \
  10. /bin/ls -d * > $(BUILD_DIR)/series || \
  11. touch $(BUILD_DIR)/series )
  12. for f in `cat $(BUILD_DIR)/series`; do \
  13. cp -af $(CUST_DIR)/$$f $(TARGET_DIR); \
  14. done
  15. rm -f $(BUILD_DIR)/series
  16. touch $@
  17. customize: $(BUILD_DIR)/.customize
  18. customize-clean:
  19. rm -f $(BUILD_DIR)/.customize
  20. .PHONY: customize
  21. #############################################################
  22. #
  23. # Toplevel Makefile options
  24. #
  25. #############################################################
  26. ifeq ($(BR2_PACKAGE_CUSTOMIZE),y)
  27. TARGETS+=customize
  28. endif