aboutsummaryrefslogtreecommitdiffstats
path: root/package/customize/customize.mk
blob: 2a105a70bfffa548f85584f5acd8fcde95d59a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#############################################################
#
# Any custom stuff you feel like doing....
#
#############################################################
CUST_DIR:=package/customize/source

$(BUILD_DIR)/.customize:
	rm -f $(PROJECT_BUILD_DIR)/series
	(cd $(CUST_DIR); \
	 /bin/ls -d * > $(PROJECT_BUILD_DIR)/series || \
	 touch $(PROJECT_BUILD_DIR)/series )
	for f in `cat $(PROJECT_BUILD_DIR)/series`; do \
		cp -af $(CUST_DIR)/$$f $(TARGET_DIR)/$$f; \
	done
	rm -f $(PROJECT_BUILD_DIR)/series
	touch $@

customize: $(BUILD_DIR)/.customize

customize-clean:
	rm -f $(BUILD_DIR)/.customize

.PHONY: customize
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_CUSTOMIZE)),y)
TARGETS+=customize
endif