summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/Makefile19
-rw-r--r--package/ipsec-tools/Makefile6
2 files changed, 20 insertions, 5 deletions
diff --git a/package/Makefile b/package/Makefile
index e0bd23c7e..af746715b 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -1,13 +1,11 @@
# Main makefile for the packages
include $(TOPDIR)/rules.mk
+include $(TOPDIR)/.config
+include .pkgdeps
+
COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m))
INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y))
-all: compile
-clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
-compile: $(COMPILE_PACKAGES)
-install: base-files-install $(INSTALL_PACKAGES)
-
$(STAMP_DIR) $(TARGET_DIR):
mkdir -p $@
@@ -15,8 +13,19 @@ $(STAMP_DIR) $(TARGET_DIR):
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare
%-compile: $(STAMP_DIR) $(TARGET_DIR)
+ @echo "-> make $@"
$(MAKE) -C $(patsubst %-compile,%,$@) compile
%-clean: $(STAMP_DIR) $(TARGET_DIR)
$(MAKE) -C $(patsubst %-clean,%,$@) clean
+
+.pkgdeps: $(TOPDIR)/.pkginfo FORCE
+ @$(TOPDIR)/scripts/gen_deps.pl < $< > $@ || rm -f $@
+
+all: compile
+clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
+compile: $(COMPILE_PACKAGES)
+install: base-files-install $(INSTALL_PACKAGES)
+
+
diff --git a/package/ipsec-tools/Makefile b/package/ipsec-tools/Makefile
index 9e14b4007..e85f09d89 100644
--- a/package/ipsec-tools/Makefile
+++ b/package/ipsec-tools/Makefile
@@ -12,6 +12,8 @@ PKG_SOURCE_URL:=@SF/ipsec-tools
PKG_MD5SUM:=d0242a943c82c0cbf28005966ff35e21
PKG_CAT:=bzcat
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
include $(TOPDIR)/package/rules.mk
define Package/ipsec-tools
@@ -66,6 +68,10 @@ define Build/Configure
);
endef
+define Build/Compile
+ $(call Build/Compile/Default,install)
+endef
+
define Package/ipsec-tools/install
install -d -m0755 $(1)/etc
install -d -m0755 $(1)/usr/lib/