fix wificonf build depends
authorFelix Fietkau <nbd@openwrt.org>
Sat, 11 Jun 2005 21:13:46 +0000 (21:13 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 11 Jun 2005 21:13:46 +0000 (21:13 +0000)
SVN-Revision: 1204

openwrt/package/Makefile
openwrt/package/openwrt/libnvram/Makefile
openwrt/package/openwrt/libshared/Makefile

index 4fbcf83ca9ac842f21e27b88a1571e797090c12e..f9768de479b82f837fbb85ff210a78ec3d87b275 100644 (file)
@@ -127,6 +127,7 @@ clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
 install: $(patsubst %,%-install,$(package-y))
 
+wificonf-compile: openwrt-compile wireless-tools-compile
 arpwatch-compile: libpcap-compile
 cyrus-sasl-compile: openssl-compile
 dropbear-compile: zlib-compile
index 75a1afcd6ab33e133ac9adf4b056df2eac468dad..a5b62848bae92ae64bd2295437883e603576076b 100644 (file)
@@ -26,10 +26,12 @@ $(PKG_BUILD_DIR)/nvram: $(PKG_BUILD_DIR)/main.o $(PKG_BUILD_DIR)/libnvram.so
 
 $(PKG_BUILD_DIR)/libnvram.so: $(LIBNVRAM_OBJS)
        $(TARGET_CC) -shared -o $@ $^
+       
+$(STAGING_DIR)/lib/libnvram.so: $(PKG_BUILD_DIR)/libnvram.so
+       install -m 644 $< $@
 
 $(TARGET_DIR)/usr/lib/libnvram.so: $(PKG_BUILD_DIR)/libnvram.so
        install -m 644 $< $@
-       install -m 644 $< $(STAGING_DIR)/lib/libnvram.so
        $(STRIP) $@
 
 $(TARGET_DIR)/usr/sbin/nvram: $(PKG_BUILD_DIR)/nvram
@@ -37,7 +39,7 @@ $(TARGET_DIR)/usr/sbin/nvram: $(PKG_BUILD_DIR)/nvram
        install -m 755 $< $@
        $(STRIP) $@
 
-compile: $(PKG_BUILD_DIR)/libnvram.so $(PKG_BUILD_DIR)/nvram
+compile: $(PKG_BUILD_DIR)/libnvram.so $(STAGING_DIR)/lib/libnvram.so $(PKG_BUILD_DIR)/nvram
 install: $(TARGET_DIR)/usr/lib/libnvram.so $(TARGET_DIR)/usr/sbin/nvram
 
 clean:
index 601dc665c5aafd2fa4fa8243da1897bf32a985d6..4309c8ce6670a6d881d34e514588ef9055040b01 100644 (file)
@@ -26,12 +26,14 @@ $(PKG_BUILD_DIR):
 $(PKG_BUILD_DIR)/libshared.so: $(LIBSHARED_OBJS)
        $(TARGET_CC) -shared -o $@ $^
 
+$(STAGING_DIR)/lib/libshared.so: $(PKG_BUILD_DIR)/libshared.so
+       install -m 644 $< $@ 
+
 $(TARGET_DIR)/usr/lib/libshared.so: $(PKG_BUILD_DIR)/libshared.so
        install -m 644 $^ $@
-       install -m 644 $^ $(STAGING_DIR)/lib/libshared.so
        $(STRIP) $@
 
-compile: $(PKG_BUILD_DIR)/libshared.so
+compile: $(PKG_BUILD_DIR)/libshared.so $(STAGING_DIR)/lib/libshared.so
 install: $(TARGET_DIR)/usr/lib/libshared.so
 
 clean: