Initial package for json-table OBS-URL: https://build.opensuse.org/request/show/711557 OBS-URL: https://build.opensuse.org/package/show/utilities/json-table?expand=0&rev=1
31 lines
811 B
Diff
31 lines
811 B
Diff
diff --git a/Makefile b/Makefile
|
|
index 2927afe..7172c50 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -2,11 +2,8 @@
|
|
|
|
OS := $(shell uname -s)
|
|
|
|
-ifneq (${OS}, Darwin)
|
|
-LDFLAGS += -static
|
|
-endif
|
|
-
|
|
CFLAGS += -D_GNU_SOURCE=1 -O3 -Wall -Werror -Winline -pedantic-errors -std=c99
|
|
+DESTDIR =
|
|
PREFIX := /usr/local
|
|
BINDIR := $(PREFIX)/bin
|
|
MANDIR := $(PREFIX)/share/man/man1
|
|
@@ -48,9 +45,9 @@ build/prof/jt: build/prof/jt.o build/prof/stack.o build/prof/buffer.o build/prof
|
|
docs: jt.1 jt.1.html
|
|
|
|
install: jt jt.1
|
|
- mkdir -p $(BINDIR) $(MANDIR)
|
|
- cp jt $(BINDIR)
|
|
- cp jt.1 $(MANDIR)
|
|
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
|
|
+ cp jt $(DESTDIR)$(BINDIR)
|
|
+ cp jt.1 $(DESTDIR)$(MANDIR)
|
|
cat $(PREFIX)/man/man1/jt.1 2>&1 |grep -q 'micha\\\.niskin@gmail\\\.com' \
|
|
&& rm -f $(PREFIX)/man/man1/jt.1 || true
|
|
|