From 54292651057096055e41cee807342b4f07fa708b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 10 Jan 2019 23:24:31 -0500 Subject: Fix header dependencies in cash Makefile --- bin/cash/.gitignore | 1 + bin/cash/Makefile | 74 ++++++++++++++++++++++++++++++----------------------- 2 files changed, 43 insertions(+), 32 deletions(-) (limited to 'bin') diff --git a/bin/cash/.gitignore b/bin/cash/.gitignore index 674a2ed5..ed57be1a 100644 --- a/bin/cash/.gitignore +++ b/bin/cash/.gitignore @@ -1,4 +1,5 @@ *.o +.depend builtins.c builtins.h cash diff --git a/bin/cash/Makefile b/bin/cash/Makefile index 8d032dea..13c965f2 100644 --- a/bin/cash/Makefile +++ b/bin/cash/Makefile @@ -3,42 +3,55 @@ LDLIBS = -ledit -include config.mk -OBJS += alias.o -OBJS += arith_yacc.o -OBJS += arith_yylex.o -OBJS += cd.o -OBJS += echo.o -OBJS += error.o -OBJS += eval.o -OBJS += exec.o -OBJS += expand.o -OBJS += histedit.o -OBJS += input.o -OBJS += jobs.o -OBJS += kill.o -OBJS += mail.o -OBJS += main.o -OBJS += memalloc.o -OBJS += miscbltin.o -OBJS += mystring.o -OBJS += options.o -OBJS += output.o -OBJS += parser.o -OBJS += printf.o -OBJS += redir.o -OBJS += show.o -OBJS += test.o -OBJS += trap.o -OBJS += var.o +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 -OBJS += $(GENSRCS:.c=.o) +SRCS += $(GENSRCS) +OBJS = $(SRCS:.c=.o) + +all: tags cash .depend cash: $(OBJS) $(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@ +tags: *.h *.c + ctags -w *.h *.c + +.depend: $(SRCS) $(GENHDRS) + $(CC) $(CFLAGS) -MM $(SRCS) > .depend + +-include .depend + +$(OBJS): $(GENHDRS) + builtins.c builtins.h: mkbuiltins builtins.def sh mkbuiltins . @@ -51,8 +64,5 @@ syntax.c syntax.h: mksyntax token.h: mktokens sh mktokens -# FIXME -$(OBJS): *.h $(GENHDRS) - clean: - rm -f cash $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) + rm -f cash $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) tags .depend -- cgit 1.4.1 &id=03f537f1a134c8578ae4c16055596539fbbcc220'>unfollow)
Commit message (Expand)Author
2014-12-13ui-shared: remove toggle_ssdiff arg to cgit_commit_link()John Keeping
2014-08-07git: update to v2.0.4John Keeping
2014-08-07Always check if README exists in choose_readme()Lukas Fleischer
2014-08-01cgitrc.5: we mean a cgi response, not requestJason A. Donenfeld
2014-07-28ui-stats.c: set parent pointer to NULL after freeing itJohn Keeping
2014-07-28git: update to v2.0.3John Keeping
2014-07-28parsing.c: make commit buffer constJohn Keeping
2014-06-30Bump version.Jason A. Donenfeld
2014-06-29remove debug fprinf() calls that sneaked in with commit 79c985Christian Hesse
2014-06-28git: update to 2.0.1Christian Hesse
2014-06-28ui-patch: Flush stdout after outputting dataJohn Keeping
2014-06-28ui-log: ignore unhandled argumentsJohn Keeping
2014-06-28git: update for git 2.0Christian Hesse
2014-04-17remove trailing whitespaces from source filesChristian Hesse
2014-04-12git: update to 1.9.2Christian Hesse
2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice
2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld
2014-03-20git: update to 1.9.1Christian Hesse