enable mount nfs, thx ejka@imfi.kspu.ru
[openwrt.git] / package / cgilib / Makefile
index 3e17975..b81effd 100644 (file)
@@ -20,7 +20,7 @@ $(eval $(call PKG_template,CGILIB,cgilib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 $(PKG_BUILD_DIR)/.configured:
        touch $@
 
-$(PKG_BUILD_DIR)/.built:
+$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
                OFLAGS="$(TARGET_CFLAGS)" \
@@ -29,23 +29,22 @@ $(PKG_BUILD_DIR)/.built:
 
 $(IPKG_CGILIB):
        install -d -m0755 $(IDIR_CGILIB)/usr/lib
-       cp -fpR $(PKG_BUILD_DIR)/libcgi.so.* $(IDIR_CGILIB)/usr/lib/
+       $(CP) $(PKG_BUILD_DIR)/libcgi.so.* $(IDIR_CGILIB)/usr/lib/
        $(RSTRIP) $(IDIR_CGILIB)
        $(IPKG_BUILD) $(IDIR_CGILIB) $(PACKAGE_DIR)
 
 $(STAGING_DIR)/usr/lib/libcgi.so: $(PKG_BUILD_DIR)/.built
        mkdir -p $(STAGING_DIR)/usr/include
-       cp -fpR $(PKG_BUILD_DIR)/cgi.h $(STAGING_DIR)/usr/include/
+       $(CP) $(PKG_BUILD_DIR)/cgi.h $(STAGING_DIR)/usr/include/
        mkdir -p $(STAGING_DIR)/usr/lib
-       cp -fpR $(PKG_BUILD_DIR)/libcgi.{a,so*} $(STAGING_DIR)/usr/lib/
+       $(CP) $(PKG_BUILD_DIR)/libcgi.{a,so*} $(STAGING_DIR)/usr/lib/
        touch $@
 
 install-dev: $(STAGING_DIR)/usr/lib/libcgi.so
-
 uninstall-dev:
        rm -rf \
          $(STAGING_DIR)/usr/include/cgi.h \
          $(STAGING_DIR)/usr/lib/libcgi.{a,so*} \
 
-compile: install-dev
-clean: uninstall-dev
+compile-targets: install-dev
+clean-targets: uninstall-dev
This page took 0.028714 seconds and 4 git commands to generate.