libogg: move header install to seperate target so it isn't always out-of-date
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 16 Jun 2008 11:16:28 +0000 (11:16 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 16 Jun 2008 11:16:28 +0000 (11:16 -0000)
package/libogg/libogg.mk

index e88b5785f9ad0dbd9546431525eaca655c4f8d1c..61801a4bd7c246cdbee9bc9ad316764143eda694 100644 (file)
@@ -56,14 +56,16 @@ ifneq ($(strip $(BR2_HAVE_MANPAGES)),y)
        rm -rf $(TARGET_DIR)/usr/share/doc/$(LIBOGG_NAME)
 endif
 
-$(TARGET_DIR)/usr/lib/libogg.a: $(TARGET_DIR)/usr/lib/libogg.so
+$(TARGET_DIR)/usr/lib/libogg.a: $(STAGING_DIR)/usr/lib/libogg.so
        cp -dpf $(STAGING_DIR)/usr/lib/libogg.a $@
 
-libogg-header: $(TARGET_DIR)/usr/lib/libogg.a
+$(TARGET_DIR)/usr/include/ogg/ogg.h: $(STAGING_DIR)/usr/lib/libogg.so
        mkdir -p $(TARGET_DIR)/usr/include/ogg
        cp -dpf $(LIBOGG_DIR)/include/ogg/*.h \
                $(TARGET_DIR)/usr/include/ogg
 
+libogg-header: $(TARGET_DIR)/usr/lib/libogg.a $(TARGET_DIR)/usr/include/ogg/ogg.h
+
 libogg: uclibc pkgconfig $(TARGET_DIR)/usr/lib/libogg.so
 
 libogg-source: $(DL_DIR)/$(LIBOGG_SOURCE)