Revision bd9141bb Makefile
b/Makefile | ||
---|---|---|
39 | 39 |
|
40 | 40 |
SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) |
41 | 41 |
SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) |
42 |
SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS)) |
|
42 | 43 |
|
43 | 44 |
config-all-devices.mak: $(SUBDIR_DEVICES_MAK) |
44 | 45 |
$(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@") |
45 | 46 |
|
47 |
-include $(SUBDIR_DEVICES_MAK_DEP) |
|
48 |
|
|
46 | 49 |
%/config-devices.mak: default-configs/%.mak |
47 |
$(call quiet-command,cat $< > $@.tmp, " GEN $@")
|
|
50 |
$(call quiet-command,$(SHELL) $(SRC_PATH)/make_device_config.sh $@ $<, " GEN $@")
|
|
48 | 51 |
@if test -f $@; then \ |
49 | 52 |
if cmp -s $@.old $@; then \ |
50 |
if ! cmp -s $@ $@.tmp; then \ |
|
51 |
mv $@.tmp $@; \ |
|
52 |
cp -p $@ $@.old; \ |
|
53 |
fi; \ |
|
53 |
mv $@.tmp $@; \ |
|
54 |
cp -p $@ $@.old; \ |
|
54 | 55 |
else \ |
55 | 56 |
if test -f $@.old; then \ |
56 | 57 |
echo "WARNING: $@ (user modified) out of date.";\ |
Also available in: Unified diff