X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/699858b4e8a4ec5bbcda5244af026055bcf9121e..a533c528599e2d75536320755e0a4dca126087c5:/package/cgilib/Makefile diff --git a/package/cgilib/Makefile b/package/cgilib/Makefile index 3e17975c1..b81effdb0 100644 --- a/package/cgilib/Makefile +++ b/package/cgilib/Makefile @@ -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