nuke jffs2root --move from init scripts
[openwrt.git] / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3 include $(TOPDIR)/.config
4 include $(TOPDIR)/.pkgdeps
5
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))
9
10 $(STAMP_DIR) $(TARGET_DIR):
11 mkdir -p $@
12
13 %-source: $(STAMP_DIR) $(TARGET_DIR)
14 $(MAKE) -C $(patsubst %-source,%,$@) source MAKEFLAGS="$(BUILD_MAKEFLAGS)"
15
16 %-prepare: $(STAMP_DIR) $(TARGET_DIR)
17 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare MAKEFLAGS="$(BUILD_MAKEFLAGS)"
18
19 %-compile: $(STAMP_DIR) $(TARGET_DIR)
20 @echo "-> make $@"
21 $(MAKE) -C $(patsubst %-compile,%,$@) compile MAKEFLAGS="$(BUILD_MAKEFLAGS)"
22
23 %-install: $(STAMP_DIR) $(TARGET_DIR)
24 @echo "-> make $@"
25 $(MAKE) -C $(patsubst %-install,%,$@) install MAKEFLAGS="$(BUILD_MAKEFLAGS)"
26
27 %-clean: $(STAMP_DIR) $(TARGET_DIR)
28 $(MAKE) -C $(patsubst %-clean,%,$@) clean MAKEFLAGS="$(BUILD_MAKEFLAGS)"
29
30 ifeq ($(SDK),1)
31 GENDEP_OPTS := -s
32 endif
33
34 $(TOPDIR)/.pkgdeps: $(TOPDIR)/.pkginfo
35 @$(TOPDIR)/scripts/gen_deps.pl $(GENDEP_OPTS) < $< > $@ || rm -f $@
36
37 all: compile
38 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
39 download: $(SOURCE_PACKAGES)
40 compile-targets: $(COMPILE_PACKAGES)
41 compile:
42 $(MAKE) -j$(CONFIG_JLEVEL) compile-targets
43 install-targets: base-files-install $(INSTALL_PACKAGES)
44 install:
45 rm -rf $(BUILD_DIR)/root
46 $(MAKE) install-targets
47
This page took 0.037886 seconds and 5 git commands to generate.