hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 3efee8c3a8224f16d8b52c610fd97bb6cf12e6b5
parent 592586cd0db9aa320d3383d62f816fa8c62b73b9
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat, 28 May 2022 22:26:38 -0400

Remove scripts/platform

Since PLATFORM is already given in config.mk, this script is redundant.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
MMakefile | 4++--
Dscripts/platform | 16----------------
2 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/Makefile b/Makefile @@ -46,7 +46,7 @@ haredoc_srcs = \ $(HARECACHE)/hare.ssa: $(hare_srcs) $(stdlib_deps_any) $(stdlib_deps_$(PLATFORM)) @printf 'HAREC\t$@\n' @HARECACHE=$(HARECACHE) $(HAREC) $(HAREFLAGS) \ - -D PLATFORM:str='"'"$$(./scripts/platform)"'"' \ + -D PLATFORM:str='"'"$(PLATFORM)"'"' \ -D VERSION:str='"'"$$(./scripts/version)"'"' \ -D HAREPATH:str='"'"$(HAREPATH)"'"' \ -o $@ $(hare_srcs) @@ -54,7 +54,7 @@ $(HARECACHE)/hare.ssa: $(hare_srcs) $(stdlib_deps_any) $(stdlib_deps_$(PLATFORM) $(TESTCACHE)/hare.ssa: $(hare_srcs) $(testlib_deps_any) $(testlib_deps_$(PLATFORM)) @printf 'HAREC\t$@\n' @HARECACHE=$(TESTCACHE) $(HAREC) $(TESTHAREFLAGS) \ - -D PLATFORM:str='"'"$$(./scripts/platform)"'"' \ + -D PLATFORM:str='"'"$(PLATFORM)"'"' \ -D VERSION:str='"'"$$(./scripts/version)"'"' \ -D HAREPATH:str='"'"$(HAREPATH)"'"' \ -o $@ $(hare_srcs) diff --git a/scripts/platform b/scripts/platform @@ -1,16 +0,0 @@ -#!/bin/sh -# Prints the default build tags for the host -case $(uname) in - Linux) - platform="linux" - ;; - FreeBSD) - platform="freebsd" - ;; - *) - printf "Warning: unknown target %s\n" "$(uname)" >&2 - platform="unknown" - ;; -esac - -printf "%s\n" "$platform"