Skip to content

Commit

Permalink
improved creation of .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
obgm committed Aug 7, 2013
1 parent 805fe0c commit ab9159b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ LDFLAGS:=@LIBS@
ARFLAGS:=cru
doc:=doc

# files that should be ignored by git
GITIGNOREDS:= core \*~ \*.[oa] \*.gz \*.cap \*.pcap Makefile \
autom4te.cache/ config.h config.log config.status configure \
doc/Doxyfile doc/doxygen.out doc/html/ $(LIB) tests/ccm-test \
tests/dtls-client tests/dtls-server tests/prf-test $(package) \
$(DISTDIR)/ TAGS \*.patch .gitignore

.PHONY: all dirs clean install dist distclean .gitignore doc TAGS

.SUFFIXES:
Expand Down Expand Up @@ -113,4 +120,5 @@ TAGS:
mv $@.new $@

.gitignore:
echo "core\n*~\n*.[oa]\n*.gz\n*.cap\n$(PROGRAM)\n$(DISTDIR)\n.gitignore" >$@
echo $(GITIGNOREDS) | sed 's/ /\n/g' > $@

0 comments on commit ab9159b

Please sign in to comment.