contrib/chg/Makefile
changeset 34655 01c57eeb35cb
parent 34624 884855ce5e63
child 45551 4c8d9b53b1c7
--- a/contrib/chg/Makefile	Fri Oct 13 00:22:54 2017 +0900
+++ b/contrib/chg/Makefile	Thu Oct 12 22:21:14 2017 +0900
@@ -1,5 +1,3 @@
-HG = $(CURDIR)/../../hg
-
 TARGET = chg
 SRCS = chg.c hgclient.c procutil.c util.c
 OBJS = $(SRCS:.c=.o)
@@ -15,9 +13,6 @@
 PREFIX = /usr/local
 MANDIR = $(PREFIX)/share/man/man1
 
-CHGSOCKDIR = /tmp/chg$(shell id -u)
-CHGSOCKNAME = $(CHGSOCKDIR)/server
-
 .PHONY: all
 all: $(TARGET)
 
@@ -36,13 +31,6 @@
 	install -d "$(DESTDIR)$(MANDIR)"
 	install -m 644 chg.1 "$(DESTDIR)$(MANDIR)"
 
-.PHONY: serve
-serve:
-	[ -d "$(CHGSOCKDIR)" ] || ( umask 077; mkdir "$(CHGSOCKDIR)" )
-	"$(HG)" serve --cwd / --cmdserver chgunix \
-		--address $(CHGSOCKNAME) \
-		--config cmdserver.log=/dev/stderr
-
 .PHONY: clean
 clean:
 	$(RM) $(OBJS)