package/mac80211 fixes:
[openwrt.git] / package / Makefile
1 #
2 # Copyright (C) 2006-2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 curdir:=package
10
11 -include $(TMP_DIR)/.packagedeps
12 $(curdir)/builddirs:=$(sort $(package-) $(package-y) $(package-m))
13 $(curdir)/builddirs-default:=. $(sort $(package-y) $(package-m))
14 $(curdir)/builddirs-prereq:=. $(sort $(prereq-y) $(prereq-m))
15 $(curdir)/builddirs-install:=. $(sort $(package-y))
16
17 $(curdir)/install:=$(curdir)/install-cleanup
18
19 $(curdir)/cleanup: $(TMP_DIR)/.build
20 rm -rf $(TARGET_DIR)
21
22 $(curdir)/rootfs-prepare: $(TMP_DIR)/.build
23 @if [ -d $(TOPDIR)/files ]; then \
24 $(CP) $(TOPDIR)/files/. $(TARGET_DIR); \
25 fi
26 @mkdir -p $(TARGET_DIR)/etc/rc.d
27 @( \
28 cd $(TARGET_DIR); \
29 for script in ./etc/init.d/*; do \
30 grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \
31 IPKG_INSTROOT=$(TARGET_DIR) $(which bash) ./etc/rc.common $$script enable; \
32 done || true \
33 )
34 @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf
35 @-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf
36 @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f
37
38 $(curdir)/index: FORCE
39 @(cd $(PACKAGE_DIR); $(SCRIPT_DIR)/ipkg-make-index.sh . > Packages)
40
41 $(curdir)/flags-install:= -j1
42
43 $(eval $(call stampfile,$(curdir),package,prereq))
44 $(eval $(call stampfile,$(curdir),package,cleanup))
45 $(eval $(call stampfile,$(curdir),package,compile))
46 $(eval $(call stampfile,$(curdir),package,install))
47 $(eval $(call stampfile,$(curdir),package,rootfs-prepare))
48
49 $($(curdir)/stamp-cleanup): $(TMP_DIR)/.build
50 $($(curdir)/stamp-compile): $($(curdir)/stamp-cleanup) $(TMP_DIR)/.build
51 $($(curdir)/stamp-install): $($(curdir)/stamp-compile) $(TMP_DIR)/.build
52 $($(curdir)/stamp-rootfs-prepare): $($(curdir)/stamp-install) $(TMP_DIR)/.build
53
54 $(eval $(call subdir,$(curdir)))
This page took 0.041887 seconds and 5 git commands to generate.