]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Merge pull request #1330 from korli/haiku
authorYann Collet <Cyan4973@users.noreply.github.com>
Wed, 3 Oct 2018 20:36:00 +0000 (13:36 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Oct 2018 20:36:00 +0000 (13:36 -0700)
Enable building zstd on Haiku.

1  2 
Makefile
lib/Makefile
programs/Makefile

diff --cc Makefile
Simple merge
diff --cc lib/Makefile
Simple merge
index 5948cf158331a92d563fb16fd9f6a180cc7d77fa,5bbc82758c448d60550874e25e0150d7a73611a6..8faa5111be3b3e06c063daac10329d0952220af6
@@@ -260,29 -258,11 +260,29 @@@ preview-man: clean-man ma
  #-----------------------------------------------------------------------------
  # make install is validated only for Linux, macOS, BSD, Hurd and Solaris targets
  #-----------------------------------------------------------------------------
- ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
+ ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku))
  
 +EGREP = egrep --color=never
 +
 +# Print a two column output of targets and their description. To add a target description, put a
 +# comment in the Makefile with the format "## <TARGET>: <DESCRIPTION>".  For example:
 +#
 +## list: Print all targets and their descriptions (if provided)
  .PHONY: list
  list:
 -      @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
 +      @TARGETS=$$($(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
 +              | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
 +              | $(EGREP) -v  -e '^[^[:alnum:]]' | sort); \
 +      { \
 +          printf "Target Name\tDescription\n"; \
 +          printf "%0.s-" {1..16}; printf "\t"; printf "%0.s-" {1..40}; printf "\n"; \
 +          for target in $$TARGETS; do \
 +              line=$$($(EGREP) "^##[[:space:]]+$$target:" $(lastword $(MAKEFILE_LIST))); \
 +              description=$$(echo $$line | awk '{i=index($$0,":"); print substr($$0,i+1)}' | xargs); \
 +              printf "$$target\t$$description\n"; \
 +          done \
 +      } | column -t -s $$'\t'
 +
  
  DESTDIR     ?=
  # directory variables : GNU conventions prefer lowercase