1 # Main makefile for the packages
2 include $(TOPDIR
)/rules.mk
3 include $(TOPDIR
)/.config
4 include $(TOPDIR
)/.pkgdeps
6 SOURCE_PACKAGES
:=$(patsubst %,%-source
,$(package-y
) $(package-m
))
7 COMPILE_PACKAGES
:=$(patsubst %,%-compile
,$(package-y
) $(package-m
))
8 INSTALL_PACKAGES
:=$(patsubst %,%-install,$(package-y
))
10 $(STAMP_DIR
) $(TARGET_DIR
):
13 %-source
: $(STAMP_DIR
) $(TARGET_DIR
)
14 $(MAKE
) -C
$(patsubst %-source
,%,$@
) source MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
16 %-prepare
: $(STAMP_DIR
) $(TARGET_DIR
)
17 $(MAKE
) -C
$(patsubst %-prepare
,%,$@
) prepare MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
19 %-compile
: $(STAMP_DIR
) $(TARGET_DIR
)
20 $(MAKE
) -C
$(patsubst %-compile
,%,$@
) compile MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
22 %-install: $(STAMP_DIR
) $(TARGET_DIR
)
23 $(MAKE
) -C
$(patsubst %-install,%,$@
) install MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
25 %-clean: $(STAMP_DIR
) $(TARGET_DIR
)
26 $(MAKE
) -C
$(patsubst %-clean,%,$@
) clean MAKEFLAGS
="$(BUILD_MAKEFLAGS)"
32 $(TOPDIR
)/.pkgdeps
: $(TOPDIR
)/.pkginfo
33 @
$(TOPDIR
)/scripts
/gen_deps.pl
$(GENDEP_OPTS
) < $< > $@ ||
rm -f
$@
36 clean: $(patsubst %,%-clean,$(package-
) $(package-y
) $(package-m
))
37 download
: $(SOURCE_PACKAGES
)
38 compile-targets
: $(COMPILE_PACKAGES
)
40 $(MAKE
) -j
$(CONFIG_JLEVEL
) compile-targets
41 install-targets
: base-files-install
$(INSTALL_PACKAGES
)
43 rm -rf
$(BUILD_DIR
)/root
44 $(MAKE
) install-targets
This page took 0.044107 seconds and 5 git commands to generate.