| 20 | | dist: |
| 21 | | mkdir $(DIRNAME) |
| 22 | | cp COPYING smysql.cc spgsql.cc gmysqlbackend.cc gmysqlbackend.hh smysql.hh ssql.hh spgsql.hh Makefile INSTALL $(DIRNAME) |
| 23 | | tar cvzf $(DIRNAME).tar.gz $(DIRNAME) |
| 24 | | rm -rf $(DIRNAME) |
| | 21 | PACKAGE = pdns |
| | 22 | VERSION = 2.9 |
| | 23 | DISTFILES=*.cc *.hh Makefile.in OBJECTFILES OBJECTLIBS |
| | 24 | |
| | 25 | top_distdir = ../.. |
| | 26 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) |
| | 27 | |
| | 28 | distdir: $(DISTFILES) |
| | 29 | @for file in $(DISTFILES); do \ |
| | 30 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ |
| | 31 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ |
| | 32 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ |
| | 33 | $(mkinstalldirs) "$(distdir)/$$dir"; \ |
| | 34 | fi; \ |
| | 35 | if test -d $$d/$$file; then \ |
| | 36 | cp -pR $$d/$$file $(distdir) \ |
| | 37 | || exit 1; \ |
| | 38 | else \ |
| | 39 | test -f $(distdir)/$$file \ |
| | 40 | || cp -p $$d/$$file $(distdir)/$$file \ |
| | 41 | || exit 1; \ |
| | 42 | fi; \ |
| | 43 | done |