add dropbear pubkey auth patch from #582
[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 COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m))
7 INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y))
8
9 $(STAMP_DIR) $(TARGET_DIR):
10 mkdir -p $@
11
12 %-prepare: $(STAMP_DIR) $(TARGET_DIR)
13 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare MAKEFLAGS="$(BUILD_MAKEFLAGS)"
14
15 %-compile: $(STAMP_DIR) $(TARGET_DIR)
16 @echo "-> make $@"
17 $(MAKE) -C $(patsubst %-compile,%,$@) compile MAKEFLAGS="$(BUILD_MAKEFLAGS)"
18
19 %-install: $(STAMP_DIR) $(TARGET_DIR)
20 @echo "-> make $@"
21 $(MAKE) -C $(patsubst %-install,%,$@) install MAKEFLAGS="$(BUILD_MAKEFLAGS)"
22
23 %-clean: $(STAMP_DIR) $(TARGET_DIR)
24 $(MAKE) -C $(patsubst %-clean,%,$@) clean MAKEFLAGS="$(BUILD_MAKEFLAGS)"
25
26
27 $(TOPDIR)/.pkgdeps: $(TOPDIR)/.pkginfo
28 @$(TOPDIR)/scripts/gen_deps.pl < $< > $@ || rm -f $@
29
30 all: compile
31 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
32 compile-targets: $(COMPILE_PACKAGES)
33 compile:
34 $(MAKE) -j$(CONFIG_JLEVEL) compile-targets
35 install-targets: base-files-install $(INSTALL_PACKAGES)
36 install:
37 rm -rf $(BUILD_DIR)/root
38 $(MAKE) install-targets
39
This page took 0.045861 seconds and 5 git commands to generate.