Skip to content

Commit

Permalink
Fixed dist target.
Browse files Browse the repository at this point in the history
  • Loading branch information
obgm committed Mar 15, 2011
1 parent ab173a1 commit 4fbace8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ package = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
# files and flags
SOURCES:= dsrv.c peer.c netq.c dtls.c debug.c
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
HEADERS:=dsrv.h dtls.h peer.h netq.h debug.h config.h
HEADERS:=dsrv.h dtls.h peer.h netq.h debug.h config.h uthash.h
CFLAGS:=-Wall -pedantic -std=c99 @CFLAGS@
CPPFLAGS:=@CPPFLAGS@
SUBDIRS:=tests doc
Expand Down
10 changes: 3 additions & 7 deletions tests/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,9 @@ distclean: clean
@rm -rf $(DISTDIR)
@rm -f *~ $(DISTDIR).tar.gz

dist: $(FILES) $(SUBDIRS)
test -d $(DISTDIR) || mkdir $(DISTDIR)
cp $(FILES) $(DISTDIR)
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir dist; \
done
tar czf $(package).tar.gz $(DISTDIR)
dist: $(FILES)
test -d $(DISTDIR)/tests || mkdir $(DISTDIR)/tests
cp $(FILES) $(DISTDIR)/tests

.gitignore:
echo "core\n*~\n*.[oa]\n*.gz\n*.cap\n$(PROGRAM)\n$(DISTDIR)\n.gitignore" >$@

0 comments on commit 4fbace8

Please sign in to comment.