2013-10-07 10:10:06 -05:00
|
|
|
#
|
|
|
|
# @configure_input@
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
package = @PACKAGE_NAME@
|
|
|
|
version = @PACKAGE_VERSION@
|
|
|
|
tarname = @PACKAGE_TARNAME@
|
|
|
|
distdir = $(tarname)-$(version)
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
default:
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
|
2014-01-22 18:55:04 -06:00
|
|
|
all : default
|
2013-10-07 10:10:06 -05:00
|
|
|
|
2013-11-29 08:41:06 -06:00
|
|
|
install: all
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
cd doc && $(MAKE) $@
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
cd doc && $(MAKE) $@
|
|
|
|
|
2014-01-22 18:55:04 -06:00
|
|
|
doc:
|
2013-11-21 19:39:03 -06:00
|
|
|
cd doc && $(MAKE) $@
|
|
|
|
|
2014-01-27 18:32:54 -06:00
|
|
|
example:
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
|
2013-11-29 09:24:39 -06:00
|
|
|
test:
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
|
2013-10-07 10:10:06 -05:00
|
|
|
clean:
|
|
|
|
cd src && $(MAKE) $@
|
2013-11-21 19:39:03 -06:00
|
|
|
cd doc && $(MAKE) $@
|
2013-10-07 10:10:06 -05:00
|
|
|
rm -f *.o
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
rm -f config.log config.status Makefile
|
|
|
|
rm -fR autom4te.cache
|
|
|
|
|
2013-11-18 00:51:12 -06:00
|
|
|
dist: $(distdir).tar.gz
|
|
|
|
|
|
|
|
$(distdir).tar.gz: $(distdir)
|
|
|
|
tar chof - $(distdir) | gzip -9 -c > $@
|
|
|
|
rm -rf $(distdir)
|
|
|
|
|
2014-01-22 18:55:04 -06:00
|
|
|
$(distdir):
|
2013-10-07 10:10:06 -05:00
|
|
|
mkdir -p $(distdir)/src
|
2013-11-18 00:51:12 -06:00
|
|
|
mkdir -p $(distdir)/src/getdns
|
|
|
|
mkdir -p $(distdir)/src/test
|
|
|
|
mkdir -p $(distdir)/src/example
|
2014-02-04 03:14:46 -06:00
|
|
|
mkdir -p $(distdir)/src/extension
|
2013-11-29 08:41:06 -06:00
|
|
|
mkdir -p $(distdir)/doc
|
2013-10-07 10:10:06 -05:00
|
|
|
cp $(srcdir)/configure.ac $(distdir)
|
|
|
|
cp $(srcdir)/configure $(distdir)
|
|
|
|
cp $(srcdir)/Makefile.in $(distdir)
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/install-sh $(distdir)
|
|
|
|
cp $(srcdir)/config.sub $(distdir)
|
|
|
|
cp $(srcdir)/config.guess $(distdir)
|
2013-11-29 08:41:06 -06:00
|
|
|
cp $(srcdir)/ltmain.sh $(distdir)
|
2013-11-30 06:53:57 -06:00
|
|
|
cp $(srcdir)/src/*.in $(distdir)/src
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/src/*.[ch] $(distdir)/src
|
2014-01-22 18:55:04 -06:00
|
|
|
cp $(srcdir)/src/extension/*.[ch] $(distdir)/src/extension
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/src/getdns/*.in $(distdir)/src/getdns
|
|
|
|
cp $(srcdir)/src/getdns/*.h $(distdir)/src/getdns
|
|
|
|
cp $(srcdir)/src/test/Makefile.in $(distdir)/src/test
|
|
|
|
cp $(srcdir)/src/test/*.[ch] $(distdir)/src/test
|
2013-11-30 04:25:50 -06:00
|
|
|
cp $(srcdir)/src/test/*.sh $(distdir)/src/test
|
|
|
|
cp $(srcdir)/src/test/*.good $(distdir)/src/test
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/src/example/Makefile.in $(distdir)/src/example
|
2014-01-31 09:26:45 -06:00
|
|
|
cp $(srcdir)/src/example/*.[ch] $(distdir)/src/example
|
2013-11-29 08:41:06 -06:00
|
|
|
cp $(srcdir)/doc/Makefile.in $(distdir)/doc
|
|
|
|
cp $(srcdir)/doc/*.in $(distdir)/doc
|
2013-10-07 10:10:06 -05:00
|
|
|
|
|
|
|
distcheck: $(distdir).tar.gz
|
|
|
|
gzip -cd $(distdir).tar.gz | tar xvf -
|
|
|
|
cd $(distdir) && ./configure
|
|
|
|
cd $(distdir) && $(MAKE) all
|
|
|
|
cd $(distdir) && $(MAKE) check
|
|
|
|
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install
|
|
|
|
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
|
|
|
|
@remaining="`find $${PWD}/$(distdir)/_inst -type f | wc -l`"; \
|
|
|
|
if test "$${remaining}" -ne 0; then
|
|
|
|
echo "@@@ $${remaining} file(s) remaining in stage directory!"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
cd $(distdir) && $(MAKE) clean
|
|
|
|
rm -rf $(distdir)
|
|
|
|
@echo "*** Package $(distdir).tar.gz is ready for distribution"
|
|
|
|
|
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
./config.status $@
|
2014-01-22 18:55:04 -06:00
|
|
|
|
2013-10-07 10:10:06 -05:00
|
|
|
configure.status: configure
|
|
|
|
./config.status --recheck
|
|
|
|
|
2013-11-29 09:24:39 -06:00
|
|
|
.PHONY: all distclean clean default doc test
|