[packages] Use default templates instead of custom reimplementations where applicable
[openwrt.org/packages.git] / libs / jpeg / Makefile
blob:a/libs/jpeg/Makefile -> blob:b/libs/jpeg/Makefile
--- a/libs/jpeg/Makefile
+++ b/libs/jpeg/Makefile
@@ -62,8 +62,7 @@
 endef
 
 define Build/Compile
-	rm -rf $(PKG_INSTALL_DIR)
-	mkdir -p $(PKG_INSTALL_DIR)/usr/{include,lib,bin,man/man1}
+	$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{include,lib,bin,man/man1}
 	$(MAKE) -C $(PKG_BUILD_DIR) \
 		LIBTOOL="./libtool --tag=CC" \
 		prefix="$(PKG_INSTALL_DIR)/usr" \

comments