move alsa from target/linux/package to package, add compile fix for linux 2.4
[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
14
15 %-compile: $(STAMP_DIR) $(TARGET_DIR)
16 @echo "-> make $@"
17 $(MAKE) -C $(patsubst %-compile,%,$@) compile
18
19 %-clean: $(STAMP_DIR) $(TARGET_DIR)
20 $(MAKE) -C $(patsubst %-clean,%,$@) clean
21
22
23 $(TOPDIR)/.pkgdeps: $(TOPDIR)/.pkginfo
24 @$(TOPDIR)/scripts/gen_deps.pl < $< > $@ || rm -f $@
25
26 all: compile
27 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
28 compile: $(COMPILE_PACKAGES)
29 install: base-files-install $(INSTALL_PACKAGES)
30
31
This page took 0.041513 seconds and 5 git commands to generate.