Obsolete
/
ipcd
Archived
3
0
Fork 0

plumberd => ipcd

master
Philippe PITTOLI 2020-01-06 15:35:09 +01:00
parent 2f3ece0739
commit c302f5df6b
4 changed files with 26 additions and 39 deletions

View File

@ -7,12 +7,7 @@ LIBDIR := $(PREFIX)/lib
SHAREDIR := $(PREFIX)/share SHAREDIR := $(PREFIX)/share
INCLUDEDIR := $(PREFIX)/include INCLUDEDIR := $(PREFIX)/include
MANDIR := $(SHAREDIR)/man MANDIR := $(SHAREDIR)/man
CRFLAGS := --release
CC := cc
AR := ar
RANLIB := ranlib
CFLAGS :=
LDFLAGS :=
Q := @ Q := @
@ -21,7 +16,7 @@ all: tcpd tcpc pongd pongc plumberd websocketc websocketd
tcpd: src/tcpd.cr tcpd: src/tcpd.cr
@echo ' CR > tcpd' @echo ' CR > tcpd'
$(Q)crystal src/tcpd.cr -o 'tcpd' $(Q)crystal build $(CRFLAGS) src/tcpd.cr -o 'tcpd'
tcpd.install: tcpd tcpd.install: tcpd
@ -39,7 +34,7 @@ tcpd.uninstall:
tcpc: src/tcpc.cr tcpc: src/tcpc.cr
@echo ' CR > tcpc' @echo ' CR > tcpc'
$(Q)crystal src/tcpc.cr -o 'tcpc' $(Q)crystal build $(CRFLAGS) src/tcpc.cr -o 'tcpc'
tcpc.install: tcpc tcpc.install: tcpc
@ -57,7 +52,7 @@ tcpc.uninstall:
pongd: src/pongd.cr pongd: src/pongd.cr
@echo ' CR > pongd' @echo ' CR > pongd'
$(Q)crystal src/pongd.cr -o 'pongd' $(Q)crystal build $(CRFLAGS) src/pongd.cr -o 'pongd'
pongd.install: pongd pongd.install: pongd
@ -75,7 +70,7 @@ pongd.uninstall:
pongc: src/pongc.cr pongc: src/pongc.cr
@echo ' CR > pongc' @echo ' CR > pongc'
$(Q)crystal src/pongc.cr -o 'pongc' $(Q)crystal build $(CRFLAGS) src/pongc.cr -o 'pongc'
pongc.install: pongc pongc.install: pongc
@ -93,7 +88,7 @@ pongc.uninstall:
plumberd: src/plumberd.cr plumberd: src/plumberd.cr
@echo ' CR > plumberd' @echo ' CR > plumberd'
$(Q)crystal src/plumberd.cr -o 'plumberd' $(Q)crystal build $(CRFLAGS) src/plumberd.cr -o 'plumberd'
plumberd.install: plumberd plumberd.install: plumberd
@ -111,7 +106,7 @@ plumberd.uninstall:
websocketc: src/websocketc.cr websocketc: src/websocketc.cr
@echo ' CR > websocketc' @echo ' CR > websocketc'
$(Q)crystal src/websocketc.cr -o 'websocketc' $(Q)crystal build $(CRFLAGS) src/websocketc.cr -o 'websocketc'
websocketc.install: websocketc websocketc.install: websocketc
@ -129,7 +124,7 @@ websocketc.uninstall:
websocketd: src/websocketd.cr websocketd: src/websocketd.cr
@echo ' CR > websocketd' @echo ' CR > websocketd'
$(Q)crystal src/websocketd.cr -o 'websocketd' $(Q)crystal build $(CRFLAGS) src/websocketd.cr -o 'websocketd'
websocketd.install: websocketd websocketd.install: websocketd
@ -163,25 +158,14 @@ $(DESTDIR)$(INCLUDEDIR):
$(DESTDIR)$(MANDIR): $(DESTDIR)$(MANDIR):
@echo ' DIR > $(MANDIR)' @echo ' DIR > $(MANDIR)'
$(Q)mkdir -p $(DESTDIR)$(MANDIR) $(Q)mkdir -p $(DESTDIR)$(MANDIR)
install: subdirs.install tcpd.install tcpc.install pongd.install pongc.install plumberd.install websocketc.install websocketd.install install: tcpd.install tcpc.install pongd.install pongc.install plumberd.install websocketc.install websocketd.install
@: @:
subdirs.install: uninstall: tcpd.uninstall tcpc.uninstall pongd.uninstall pongc.uninstall plumberd.uninstall websocketc.uninstall websocketd.uninstall
uninstall: subdirs.uninstall tcpd.uninstall tcpc.uninstall pongd.uninstall pongc.uninstall plumberd.uninstall websocketc.uninstall websocketd.uninstall
@: @:
subdirs.uninstall:
test: all subdirs subdirs.test
@:
subdirs.test:
clean: tcpd.clean tcpc.clean pongd.clean pongc.clean plumberd.clean websocketc.clean websocketd.clean clean: tcpd.clean tcpc.clean pongd.clean pongc.clean plumberd.clean websocketc.clean websocketd.clean
distclean: clean distclean: clean
dist: dist-gz dist-xz dist-bz2 dist: dist-gz dist-xz dist-bz2
$(Q)rm -- $(PACKAGE)-$(VERSION) $(Q)rm -- $(PACKAGE)-$(VERSION)
@ -237,10 +221,13 @@ help:
@echo ' - uninstall  Deinstalls the project.' @echo ' - uninstall  Deinstalls the project.'
@echo '' @echo ''
@echo 'CLI-modifiable variables:' @echo 'CLI-modifiable variables:'
@echo ' - CC  ${CC}' @echo ' - CRFLAGS  ${CRFLAGS}'
@echo ' - CFLAGS  ${CFLAGS}' @echo ' - CRFLAGS  ${CRFLAGS}'
@echo ' - LDFLAGS  ${LDFLAGS}' @echo ' - CRFLAGS  ${CRFLAGS}'
@echo ' - DESTDIR  ${DESTDIR}' @echo ' - CRFLAGS  ${CRFLAGS}'
@echo ' - CRFLAGS  ${CRFLAGS}'
@echo ' - CRFLAGS  ${CRFLAGS}'
@echo ' - CRFLAGS  ${CRFLAGS}'
@echo ' - PREFIX  ${PREFIX}' @echo ' - PREFIX  ${PREFIX}'
@echo ' - BINDIR  ${BINDIR}' @echo ' - BINDIR  ${BINDIR}'
@echo ' - LIBDIR  ${LIBDIR}' @echo ' - LIBDIR  ${LIBDIR}'
@ -263,5 +250,5 @@ help:
@echo '' @echo ''
@echo 'Rebuild the Makefile with:' @echo 'Rebuild the Makefile with:'
@echo ' zsh ./build.zsh -c' @echo ' zsh ./build.zsh -c'
.PHONY: all subdirs clean distclean dist install uninstall help .PHONY: all clean distclean dist install uninstall help

View File

@ -1,10 +1,10 @@
package=plumberd package=ipcd
version=0.1.0 version=0.2.0
targets=(tcpd tcpc pongd pongc plumberd websocketc websocketd) targets=(tcpd tcpc pongd pongc ipcd websocketc websocketd)
for target in tcpd tcpc pongd pongc plumberd websocketc websocketd; do for target in tcpd tcpc pongd pongc ipcd websocketc websocketd; do
type[$target]=crystal type[$target]=crystal
sources[$target]=src/${target}.cr sources[$target]=src/${target}.cr
done done

View File

@ -1,11 +1,11 @@
name: plumberd name: ipcd
version: 0.2.0 version: 0.2.0
authors: authors:
- karchnu <karchnu@karchnu.fr> - karchnu <karchnu@karchnu.fr>
description: | description: |
Plumberd allows IPC clients to contact remote services. IPCd allows IPC clients to contact remote services.
dependencies: dependencies:
ipc: ipc:
@ -18,8 +18,8 @@ targets:
pongd: pongd:
main: src/pongd.cr main: src/pongd.cr
plumberd: ipcd:
main: src/main.cr main: src/ipcd.cr
admind: admind:
main: src/admind.cr main: src/admind.cr