lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #******************************************************************************* |
| 2 | # Default target |
| 3 | #******************************************************************************* |
| 4 | #zte_app := busybox nvserver adb |
| 5 | |
| 6 | include config_app.mk |
| 7 | |
| 8 | .PHONY: all $(zte_app) romfs |
| 9 | |
| 10 | ALL: all romfs |
| 11 | |
| 12 | all: |
| 13 | touch .sgbuilt_flag |
| 14 | for app in ${zte_app} ; do \ |
| 15 | ${MAKE} -j1 -C $$app all || exit $$?; \ |
| 16 | done; |
| 17 | |
| 18 | romfs: |
| 19 | mkdir -p $(ROOTFS_DIR)/bin |
| 20 | if [ -f .sgbuilt_flag ]; then \ |
| 21 | for app in ${zte_app} ; do \ |
| 22 | ${MAKE} -j1 -C $$app romfs || exit $$?; \ |
| 23 | done; \ |
| 24 | fi; |
| 25 | |
| 26 | clean: |
| 27 | for app in ${zte_app} ; do \ |
| 28 | ${MAKE} -j1 -C $$app clean; \ |
| 29 | done; |
| 30 | rm -f .sgbuilt_flag |