aboutsummaryrefslogtreecommitdiff
path: root/package/tree/tree.mk
blob: 509ba4531838aff00a51ebd697a2cfc27c294b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
################################################################################
#
# tree
#
################################################################################

TREE_VERSION = 1.6.0
TREE_SOURCE = tree-$(TREE_VERSION).tgz
TREE_SITE = http://mama.indstate.edu/users/ice/tree/src/
TREE_LICENSE = GPLv2+
TREE_LICENSE_FILES = LICENSE

define TREE_BUILD_CMDS
	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef

define TREE_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 0755 $(@D)/tree $(TARGET_DIR)/usr/bin/tree
	$(INSTALL) -D -m 0644 $(@D)/doc/tree.1 \
		$(TARGET_DIR)/usr/share/man/man1/tree.1
endef

define TREE_CLEAN_CMDS
	-$(MAKE) -C $(@D) clean
endef

$(eval $(generic-package))