~martijnbraam/public-inbox

among-sus: Revert "Rewrite Makefile" v2 PROPOSED

Ultracoolguy
Ultracoolguy: 1
 Revert "Rewrite Makefile"

 1 files changed, 5 insertions(+), 7 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~martijnbraam/public-inbox/patches/15923/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH among-sus v2] Revert "Rewrite Makefile" Export this patch

Ultracoolguy
This reverts commit 94b7c83fd46c85f8f36d3e139ce6ffb369f11e82 but still
deletes main.o when make cleaning.
---
 Makefile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 4bd47d3..595daa4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,9 @@
.POSIX:

CFLAGS = $$(git rev-parse HEAD &>/dev/null && echo -DVERSION="\"$$(git rev-parse --short HEAD)\"")

all: among-sus

among-sus: main.o
	$(CC) $(LDFLAGS) -o $@ main.o
all:
	$(CC) -o among-sus $(CFLAGS) \
		$$(git rev-parse --short HEAD &>/dev/null && \
		printf -- '-DVERSION="%s"' "$$(git rev-parse --short HEAD)" || \
		printf -- '-DVERSION="unknown"') main.c $(LDFLAGS)

clean:
	rm -f among-sus main.o
-- 
2.29.2
Ignore this patch.

December 11, 2020 7:03 PM, "Ultracoolguy" <ultracoolguy@disroot.org> wrote: