2018-07-05 06:07:09 +00:00
|
|
|
.PHONY: info clean common client server passwd subpkgs
|
2018-04-04 15:51:03 +00:00
|
|
|
|
2018-07-05 06:07:09 +00:00
|
|
|
SUBPKGS = spinsult hkexnet herradurakex
|
|
|
|
TOOLS = hkexpasswd hkexsh hkexshd
|
|
|
|
SUBDIRS = $(LIBS) $(TOOLS)
|
2018-05-27 06:42:43 +00:00
|
|
|
|
2018-07-05 06:07:09 +00:00
|
|
|
all: common client server passwd
|
2018-04-04 15:51:03 +00:00
|
|
|
|
|
|
|
clean:
|
2018-05-27 06:42:43 +00:00
|
|
|
go clean .
|
|
|
|
for d in $(SUBDIRS); do\
|
|
|
|
$(MAKE) -C $$d clean;\
|
|
|
|
done
|
2018-04-04 15:51:03 +00:00
|
|
|
|
2018-07-05 06:07:09 +00:00
|
|
|
subpkgs:
|
|
|
|
for d in $(SUBPKGS); do\
|
|
|
|
$(MAKE) -C $$d all;\
|
|
|
|
done
|
|
|
|
|
|
|
|
tools:
|
|
|
|
for d in $(TOOLS); do\
|
|
|
|
$(MAKE) -C $$d all;\
|
|
|
|
done
|
|
|
|
|
|
|
|
common:
|
2018-04-04 15:51:03 +00:00
|
|
|
go install .
|
|
|
|
|
2018-07-05 06:07:09 +00:00
|
|
|
client: common
|
2018-05-27 06:42:43 +00:00
|
|
|
$(MAKE) -C hkexsh
|
2018-04-04 15:51:03 +00:00
|
|
|
|
2018-05-26 23:31:43 +00:00
|
|
|
ifneq ($(MSYSTEM),)
|
2018-07-05 06:07:09 +00:00
|
|
|
server: common
|
|
|
|
echo "hkexshd server not (yet) supported on Windows"
|
2018-05-26 22:54:54 +00:00
|
|
|
else
|
2018-07-05 06:07:09 +00:00
|
|
|
server: common
|
2018-05-27 06:42:43 +00:00
|
|
|
$(MAKE) -C hkexshd
|
2018-05-26 22:54:54 +00:00
|
|
|
endif
|
2018-04-04 15:51:03 +00:00
|
|
|
|
2018-07-05 06:07:09 +00:00
|
|
|
passwd: common
|
2018-05-27 06:42:43 +00:00
|
|
|
$(MAKE) -C hkexpasswd
|
2018-04-04 15:51:03 +00:00
|
|
|
|