mirror of https://gogs.blitter.com/RLabs/xs
More Makefile fixes
This commit is contained in:
parent
ffacd42baf
commit
ec37afc4d8
25
Makefile
25
Makefile
|
@ -1,34 +1,29 @@
|
||||||
.PHONY: clean lib client server passwd
|
.PHONY: clean lib client server passwd
|
||||||
|
|
||||||
|
SUBDIRS = hkexpasswd hkexsh hkexshd
|
||||||
|
|
||||||
all: lib client server passwd
|
all: lib client server passwd
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f\
|
go clean .
|
||||||
hkexsh/hkexsh hkexsh/hkexsh.exe\
|
for d in $(SUBDIRS); do\
|
||||||
hkexshd/hkexshd hkexshd/hkexshd.exe\
|
$(MAKE) -C $$d clean;\
|
||||||
hkexpasswd/hkexpasswd hkexpasswd/hkexpasswd.exe
|
done
|
||||||
|
|
||||||
|
|
||||||
lib:
|
lib:
|
||||||
go install .
|
go install .
|
||||||
|
|
||||||
client: lib
|
client: lib
|
||||||
@cd hkexsh
|
$(MAKE) -C hkexsh
|
||||||
go build .
|
|
||||||
@cd -
|
|
||||||
|
|
||||||
ifneq ($(MSYSTEM),)
|
ifneq ($(MSYSTEM),)
|
||||||
server: lib
|
server: lib
|
||||||
@echo "hkexshd server not supported on Windows (yet)"
|
echo "hkexshd server not supported on Windows (yet)"
|
||||||
else
|
else
|
||||||
server: lib
|
server: lib
|
||||||
@cd hkexshd
|
$(MAKE) -C hkexshd
|
||||||
go build .
|
|
||||||
@cd -
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
passwd: lib
|
passwd: lib
|
||||||
@cd hkexpasswd
|
$(MAKE) -C hkexpasswd
|
||||||
@go build .
|
|
||||||
@cd -
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue