mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
More Makefile fixes
This commit is contained in:
parent
ffacd42baf
commit
ec37afc4d8
1 changed files with 10 additions and 15 deletions
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 a new issue