Add amd64 detection when build host is a x86_64 machine, closes #390
[openwrt.git] / openwrt / package / libamsel / Makefile
index 795787f..0a32c73 100644 (file)
@@ -18,7 +18,10 @@ include $(TOPDIR)/package/rules.mk
 
 $(eval $(call PKG_template,LIBAMSEL,libamsel,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
-$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.prepared
+$(PKG_BUILD_DIR)/.configured:
+       touch $@
+
+$(PKG_BUILD_DIR)/.built:
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
@@ -30,18 +33,18 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.prepared
 
 $(IPKG_LIBAMSEL):
        install -d -m0755 $(IDIR_LIBAMSEL)/usr/lib
-       cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib
        $(RSTRIP) $(IDIR_LIBAMSEL)
        $(IPKG_BUILD) $(IDIR_LIBAMSEL) $(PACKAGE_DIR)
 
 
 $(STAGING_DIR)/usr/lib/libamsel.so: $(PKG_BUILD_DIR)/.built
        mkdir -p $(STAGING_DIR)/usr/include
-       cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/
        mkdir -p $(STAGING_DIR)/usr/include/compat
-       cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat
        mkdir -p $(STAGING_DIR)/usr/lib/
-       cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/
        touch $(STAGING_DIR)/usr/lib/libamsel.so
        
 install-dev: $(STAGING_DIR)/usr/lib/libamsel.so
@@ -52,6 +55,6 @@ uninstall-dev:
                $(STAGING_DIR)/usr/include/compat \
                $(STAGING_DIR)/usr/lib/libamsel.so \
 
-compile: install-dev
-clean: uninstall-dev
+compile-targets: install-dev
+clean-targets: uninstall-dev
 
This page took 0.021182 seconds and 4 git commands to generate.