2018-04-04 15:51:03 +00:00
|
|
|
.PHONY: clean lib client server passwd
|
|
|
|
|
2018-05-27 06:42:43 +00:00
|
|
|
SUBDIRS = hkexpasswd hkexsh hkexshd
|
|
|
|
|
2018-04-04 15:51:03 +00:00
|
|
|
all: lib client server passwd
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
lib:
|
|
|
|
go install .
|
|
|
|
|
|
|
|
client: lib
|
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-05-26 22:54:54 +00:00
|
|
|
server: lib
|
2018-05-27 06:42:43 +00:00
|
|
|
echo "hkexshd server not supported on Windows (yet)"
|
2018-05-26 22:54:54 +00:00
|
|
|
else
|
2018-04-04 15:51:03 +00:00
|
|
|
server: lib
|
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
|
|
|
|
|
|
|
passwd: lib
|
2018-05-27 06:42:43 +00:00
|
|
|
$(MAKE) -C hkexpasswd
|
2018-04-04 15:51:03 +00:00
|
|
|
|