Makefile allows to print the commands.

This commit is contained in:
Philippe Pittoli 2023-06-27 20:31:02 +02:00
parent ab64bc9bf6
commit ae631aa2a8

View File

@ -9,7 +9,9 @@ LOGIN_OPT = -l $(LOGIN)
endif endif
# No idea why, but I need that to run applications. Ignore that. # No idea why, but I need that to run applications. Ignore that.
LD_P ?= LD_PRELOAD=/usr/local/lib/libipc.so.0 #LD_P ?= LD_PRELOAD=/usr/local/lib/libipc.so.0
Q ?= @
#################### ####################
### REQUEST EXAMPLES ### REQUEST EXAMPLES
@ -21,48 +23,48 @@ zone-file:
VERBOSITY ?= 4 VERBOSITY ?= 4
run-client-verbosity: run-client-verbosity:
@$(LD_P) ./bin/dnsmanager-client admin maintenance verbosity $(VERBOSITY) $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client admin maintenance verbosity $(VERBOSITY) $(LOGIN_OPT)
run-client-domain-add: run-client-domain-add:
@$(LD_P) ./bin/dnsmanager-client user domain add $(DOMAIN) $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user domain add $(DOMAIN) $(LOGIN_OPT)
run-client-domain-del: run-client-domain-del:
@$(LD_P) ./bin/dnsmanager-client user domain del $(DOMAIN) $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user domain del $(DOMAIN) $(LOGIN_OPT)
run-client-domain-list: run-client-domain-list:
@$(LD_P) ./bin/dnsmanager-client user domain list $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user domain list $(LOGIN_OPT)
run-client-zone-add: run-client-zone-add:
@$(LD_P) ./bin/dnsmanager-client user zone add $(DOMAIN).json $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user zone add $(DOMAIN).json $(LOGIN_OPT)
run-client-zone-get: run-client-zone-get:
@$(LD_P) ./bin/dnsmanager-client user zone get $(DOMAIN) $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user zone get $(DOMAIN) $(LOGIN_OPT)
RRID ?= 1 RRID ?= 1
NAME ?= NAME ?=
TTL ?= 3600 TTL ?= 3600
TARGET ?= TARGET ?=
run-client-rr-add-a: run-client-rr-add-a:
@$(LD_P) ./bin/dnsmanager-client user rr add A $(DOMAIN) $(NAME) $(TTL) $(TARGET) $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user rr add A $(DOMAIN) $(NAME) $(TTL) $(TARGET) $(LOGIN_OPT)
run-client-rr-update-a: run-client-rr-update-a:
@$(LD_P) ./bin/dnsmanager-client user rr update A $(DOMAIN) $(RRID) $(NAME) $(TTL) $(TARGET) $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user rr update A $(DOMAIN) $(RRID) $(NAME) $(TTL) $(TARGET) $(LOGIN_OPT)
run-client-rr-del: run-client-rr-del:
@$(LD_P) ./bin/dnsmanager-client user rr del $(DOMAIN) $(RRID) $(LOGIN_OPT) $(Q)$(LD_P) ./bin/dnsmanager-client user rr del $(DOMAIN) $(RRID) $(LOGIN_OPT)
################## ##################
### SETUP COMMANDS ### SETUP COMMANDS
################## ##################
run-dnsmanagerd: run-dnsmanagerd:
@$(LD_P) ./bin/dnsmanagerd -v $(VERBOSITY) -r /tmp/DATA-dnsmanagerd $(Q)$(LD_P) ./bin/dnsmanagerd -v $(VERBOSITY) -r /tmp/DATA-dnsmanagerd
build-server: build-server:
shards build dnsmanagerd $(Q)shards build dnsmanagerd
build-client: build-client:
shards build dnsmanager-client $(Q)shards build dnsmanager-client
build: build-server build-client build: build-server build-client