From fd7e95765f7e5f73c10474357150c866589ac18d Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 18 Apr 2019 20:30:54 -0400 Subject: Rename cash to catsh --- bin/catsh/Makefile | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 bin/catsh/Makefile (limited to 'bin/catsh/Makefile') diff --git a/bin/catsh/Makefile b/bin/catsh/Makefile new file mode 100644 index 00000000..b3dd4779 --- /dev/null +++ b/bin/catsh/Makefile @@ -0,0 +1,94 @@ +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 + +README: catsh.7 + mandoc catsh.7 | col -bx > README -- cgit 1.4.1 pan title='2013-11-02 17:43:04 -0400'>2013-11-02Add tagbarJune McEnroe 2013-11-02Add AirlineJune McEnroe 2013-11-02Remove powerlineJune McEnroe 2013-09-06Disable some options in terminalsJune McEnroe 2013-09-05Only set colorscheme for gvimJune McEnroe 2013-08-17Add vim-ragtagJune McEnroe 2013-06-08Update base16-vimJune McEnroe 2013-06-07Switch to my own fork of base16-vimJune McEnroe 2013-05-24Indent compojure correctlyJune McEnroe 2013-05-23Remove vim-clojure-staticJune McEnroe 2013-05-23Replace VimClojure with vim-clojure-staticJune McEnroe 2013-05-18Do not run gitgutter eagerlyJune McEnroe 2013-05-15Remove tabularJune McEnroe 2013-05-15Use long names for all settingsJune McEnroe 2013-05-15Add vim-gitgutterJune McEnroe 2013-04-23Remove unused pluginsJune McEnroe 2013-04-23Switch to base16-default colorschemeJune McEnroe 2013-03-26Replace nerdcommenter with vim-commentaryJune McEnroe 2013-03-24Add paredit.vimJune McEnroe 2013-03-14Update base16-vimJune McEnroe 2013-03-12Hide mode from below statuslineJune McEnroe 2013-03-12Switch to powerlineJune McEnroe 2013-03-12Remove vim-powerlineJune McEnroe 2013-02-03Update base16 and refheapJune McEnroe 2013-02-03Ignore plugin/private.vimJune McEnroe 2012-09-29Disable GUI dialogsJune McEnroe