summary refs log tree commit diff
path: root/bin/catsh/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-06-28 22:28:32 -0400
committerJune McEnroe <june@causal.agency>2019-06-28 22:28:32 -0400
commit2a0976b40a2b3888f9ba9f2d047f81b98837dc58 (patch)
tree0bdcc7964063ffbb9945b5538c4e1c42b91b2b64 /bin/catsh/Makefile
parentSet HISTSIZE in catsh (diff)
downloadsrc-2a0976b40a2b3888f9ba9f2d047f81b98837dc58.tar.gz
src-2a0976b40a2b3888f9ba9f2d047f81b98837dc58.zip
Rename catsh to 1sh
Yes it's another rename because I felt like catsh was too long. 1sh is
short and unique.
Diffstat (limited to 'bin/catsh/Makefile')
-rw-r--r--bin/catsh/Makefile91
1 files changed, 0 insertions, 91 deletions
diff --git a/bin/catsh/Makefile b/bin/catsh/Makefile
deleted file mode 100644
index 092d8be6..00000000
--- a/bin/catsh/Makefile
+++ /dev/null
@@ -1,91 +0,0 @@
-PREFIX = /usr/local
-MANDIR = $(PREFIX)/share/man
-
-CFLAGS += -std=c99 -Wall -Wextra -DSHELL -Ilibedit
-LDLIBS = -lcurses
-
--include config.mk
-
-SRCS += alias.c
-SRCS += arith_yacc.c
-SRCS += arith_yylex.c
-SRCS += cd.c
-SRCS += echo.c
-SRCS += error.c
-SRCS += eval.c
-SRCS += exec.c
-SRCS += expand.c
-SRCS += histedit.c
-SRCS += input.c
-SRCS += jobs.c
-SRCS += kill.c
-SRCS += mail.c
-SRCS += main.c
-SRCS += memalloc.c
-SRCS += miscbltin.c
-SRCS += mystring.c
-SRCS += options.c
-SRCS += output.c
-SRCS += parser.c
-SRCS += printf.c
-SRCS += redir.c
-SRCS += show.c
-SRCS += test.c
-SRCS += trap.c
-SRCS += var.c
-
-GENSRCS = builtins.c nodes.c syntax.c
-GENHDRS = builtins.h nodes.h syntax.h token.h
-
-SRCS += $(GENSRCS)
-OBJS = $(SRCS:.c=.o) libedit/libedit.a
-
-MAN1 = catsh.1 catsh-kill.1 catsh-printf.1 catsh-test.1
-
-all: tags catsh
-
-catsh: $(OBJS)
-	$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
-
-$(OBJS): $(GENHDRS)
-
-libedit/libedit.a:
-	$(MAKE) -C libedit libedit.a
-
-builtins.c builtins.h: mkbuiltins builtins.def
-	sh mkbuiltins .
-
-nodes.c nodes.h: mknodes nodetypes nodes.c.pat
-	./mknodes nodetypes nodes.c.pat
-
-syntax.c syntax.h: mksyntax
-	./mksyntax
-
-token.h: mktokens
-	sh mktokens
-
-tags: *.h *.c
-	ctags -w *.h *.c
-
-depend: $(SRCS) $(GENHDRS)
-	$(CC) $(CFLAGS) -MM $(SRCS) > .depend
-
--include .depend
-
-clean:
-	rm -f catsh $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) tags .depend
-
-install: catsh $(MAN1)
-	install -d $(PREFIX)/bin $(MANDIR)/man1
-	install catsh $(PREFIX)/bin
-	install -m 644 $(MAN1) $(MANDIR)/man1
-
-uninstall:
-	rm -f $(PREFIX)/bin/catsh $(MAN1:%=$(MANDIR)/man1/%)
-
-shell:
-	grep -q '^$(PREFIX)/bin/catsh$$' /etc/shells \
-		|| echo '$(PREFIX)/bin/catsh' >> /etc/shells
-
-unshell:
-	sed -i sed '\;^$(PREFIX)/bin/catsh$$;d' /etc/shells