automake: import upstream fix for perl 5.26
[openwrt/openwrt.git] / tools / make-ext4fs / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 # Copyright (C) 2016 LEDE project
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=make-ext4fs
11
12 PKG_SOURCE_URL=$(LEDE_GIT)/project/make_ext4fs.git
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_DATE:=2016-08-14
15 PKG_SOURCE_VERSION:=484903e4332be6c317f531b008cb2a841a18c506
16 PKG_MIRROR_HASH:=d7ccd5e426b1d15331ff000a37dc15161f6eef594453e970fd584fcde5a25075
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 ifeq ($(HOST_OS),Linux)
21 MAKE_STATIC := STATIC=1
22 endif
23
24 define Host/Compile
25 $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs $(MAKE_STATIC)
26 endef
27
28 define Host/Install
29 $(INSTALL_BIN) $(HOST_BUILD_DIR)/make_ext4fs $(STAGING_DIR_HOST)/bin/
30 endef
31
32 define Host/Clean
33 rm -f $(STAGING_DIR_HOST)/bin/make_ext4fs
34 endef
35
36 $(eval $(call HostBuild))