[Winbash-checkins] CVS: winbash Makefile,1.4,1.5
Brought to you by:
enricobrunetta,
xks
From: kevin s. <xk...@us...> - 2002-03-10 21:42:19
|
Update of /cvsroot/winbash/winbash In directory usw-pr-cvs1:/tmp/cvs-serv2917 Modified Files: Makefile Log Message: added TAGS target, some small cleanup Index: Makefile =================================================================== RCS file: /cvsroot/winbash/winbash/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile 9 Mar 2002 16:58:09 -0000 1.4 +++ Makefile 10 Mar 2002 21:42:16 -0000 1.5 @@ -44,7 +44,7 @@ %.obj: %.c $(RM) $@ - cl.exe -c $(CPPFLAGS) $(CFLAGS) /Fo$@ $< + $(CC) -c $(CPPFLAGS) $(CFLAGS) /Fo$@ $< BUILTIN_SRCS = \ builtins/mkbuiltins.c \ @@ -163,6 +163,11 @@ $(LIB_GLOB_SRCS) \ $(WINBASH_SRCS) +# used for builing tags +CSOURCES = $(BASH-SRCS) +# FIXME -- this could be a little more specific. +HSOURCES = $(wildcard *.h lib/readline/*.h builtins/*.h dum_inc/*.h) + BASH-OBJS = $(BASH-SRCS:%.c=%.obj) LDLIBS += builtins/builtins.lib @@ -187,7 +192,9 @@ $(CC) $(CPPFLAGS) $(CPPDEFS) $(CFLAGS) -o $@ $< clean: - $(RM) $(BASH-OBJS) y.tab.c y.tab.h bash.exe sh.exe bash.pdb + $(RM) $(BASH-OBJS) y.tab.c y.tab.h bash.exe sh.exe bash.pdb \ + newversion.pdb newversion.ilk \ + TAGS cd builtins ; $(MAKE) clean .distribution: @@ -364,3 +371,6 @@ flags.h general.h hash.h input.h jobs.h make_cmd.h maxpath.h \ memalloc.h nt_types.h quit.h shell.h siglist.h stdc.h subst.h \ unwind_prot.h variables.h + +TAGS: $(CSOURCES) $(HSOURCES) + etags --ignore-indentation --members --declarations --output=$@ $? |