Pārlūkot izejas kodu

Update Haiku Makefile

master
Arun Prakash Jana pirms 4 gadiem
vecāks
revīzija
30edbeee6c
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
1 mainītis faili ar 19 papildinājumiem un 2 dzēšanām
  1. +19
    -2
      misc/haiku/Makefile

+ 19
- 2
misc/haiku/Makefile Parādīt failu

@@ -17,9 +17,12 @@ O_NOMOUSE := 0 # no mouse support
O_NOBATCH := 0 # no built-in batch renamer O_NOBATCH := 0 # no built-in batch renamer
O_NOFIFO := 0 # no FIFO previewer support O_NOFIFO := 0 # no FIFO previewer support
O_CTX8 := 0 # enable 8 contexts O_CTX8 := 0 # enable 8 contexts
O_ICONS := 0 # support icons O_ICONS := 0 # support icons-in-terminal
O_NERD := 0 # support icons-nerdfont
O_QSORT := 0 # use Alexey Tourbin's QSORT implementation O_QSORT := 0 # use Alexey Tourbin's QSORT implementation
O_BENCH := 0 # benchmark mode (stops at first user input) O_BENCH := 0 # benchmark mode (stops at first user input)
O_NOSSN := 0 # enable session support
O_NOUG := 0 # disable user, group name in status bar


# convert targets to flags for backwards compatibility # convert targets to flags for backwards compatibility
ifneq ($(filter debug,$(MAKECMDGOALS)),) ifneq ($(filter debug,$(MAKECMDGOALS)),)
@@ -76,6 +79,10 @@ ifeq ($(O_ICONS),1)
CPPFLAGS += -DICONS CPPFLAGS += -DICONS
endif endif


ifeq ($(O_NERD),1)
CPPFLAGS += -DNERD
endif

ifeq ($(O_QSORT),1) ifeq ($(O_QSORT),1)
CPPFLAGS += -DTOURBIN_QSORT CPPFLAGS += -DTOURBIN_QSORT
endif endif
@@ -84,6 +91,14 @@ ifeq ($(O_BENCH),1)
CPPFLAGS += -DBENCH CPPFLAGS += -DBENCH
endif endif


ifeq ($(O_NOSSN),1)
CPPFLAGS += -DNOSSN
endif

ifeq ($(O_NOUG),1)
CPPFLAGS += -DNOUG
endif

ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1) ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw) CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw) LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw)
@@ -100,7 +115,7 @@ ifeq ($(shell uname -s), Haiku)
OBJS_HAIKU ?= misc/haiku/nm.o OBJS_HAIKU ?= misc/haiku/nm.o
endif endif


CFLAGS += -Wall -Wextra CFLAGS += -std=c11 -Wall -Wextra -Wshadow
CFLAGS += $(CFLAGS_OPTIMIZATION) CFLAGS += $(CFLAGS_OPTIMIZATION)
CFLAGS += $(CFLAGS_CURSES) CFLAGS += $(CFLAGS_CURSES)


@@ -168,10 +183,12 @@ sign:


upload-local: sign static upload-local: sign static
$(eval ID=$(shell curl -s 'https://api.github.com/repos/jarun/nnn/releases/tags/v$(VERSION)' | jq .id)) $(eval ID=$(shell curl -s 'https://api.github.com/repos/jarun/nnn/releases/tags/v$(VERSION)' | jq .id))
# upload sign file
curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=nnn-$(VERSION).tar.gz.sig' \ curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=nnn-$(VERSION).tar.gz.sig' \
-H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/pgp-signature' \ -H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/pgp-signature' \
--upload-file nnn-$(VERSION).tar.gz.sig --upload-file nnn-$(VERSION).tar.gz.sig
tar -zcf $(BIN)-static-$(VERSION).x86_64.tar.gz $(BIN)-static tar -zcf $(BIN)-static-$(VERSION).x86_64.tar.gz $(BIN)-static
# upload static binary
curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=$(BIN)-static-$(VERSION).x86_64.tar.gz' \ curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=$(BIN)-static-$(VERSION).x86_64.tar.gz' \
-H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/x-sharedlib' \ -H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/x-sharedlib' \
--upload-file $(BIN)-static-$(VERSION).x86_64.tar.gz --upload-file $(BIN)-static-$(VERSION).x86_64.tar.gz


||||||
x
 
000:0
Notiek ielāde…
Atcelt
Saglabāt