2003-01-18 22:52:46 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Any custom stuff you feel like doing....
|
|
|
|
#
|
|
|
|
#############################################################
|
2004-10-09 04:49:33 +02:00
|
|
|
CUST_DIR:=package/customize/source
|
2003-01-18 22:52:46 +01:00
|
|
|
|
2007-07-16 09:55:50 +02:00
|
|
|
$(BUILD_DIR)/.customize:
|
|
|
|
rm -f $(PROJECT_BUILD_DIR)/series
|
2007-08-22 11:56:41 +02:00
|
|
|
(cd $(CUST_DIR); \
|
2007-07-16 09:55:50 +02:00
|
|
|
/bin/ls -d * > $(PROJECT_BUILD_DIR)/series || \
|
|
|
|
touch $(PROJECT_BUILD_DIR)/series )
|
2007-08-22 14:35:41 +02:00
|
|
|
for f in `cat $(PROJECT_BUILD_DIR)/series`; do \
|
|
|
|
cp -af $(CUST_DIR)/$$f $(TARGET_DIR)/$$f; \
|
2007-07-16 09:55:50 +02:00
|
|
|
done
|
|
|
|
rm -f $(PROJECT_BUILD_DIR)/series
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
customize: $(BUILD_DIR)/.customize
|
|
|
|
|
|
|
|
customize-clean:
|
|
|
|
rm -f $(BUILD_DIR)/.customize
|
|
|
|
|
2007-08-20 19:21:16 +02:00
|
|
|
.PHONY: customize
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_CUSTOMIZE)),y)
|
|
|
|
TARGETS+=customize
|
|
|
|
endif
|