mirror of https://github.com/getdnsapi/getdns.git
82 lines
2.0 KiB
Makefile
82 lines
2.0 KiB
Makefile
#
|
|
# @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) $@
|
|
|
|
all : default
|
|
|
|
clean:
|
|
cd src && $(MAKE) $@
|
|
rm -f *.o
|
|
|
|
distclean:
|
|
cd src && $(MAKE) $@
|
|
rm -f config.log config.status Makefile
|
|
rm -fR autom4te.cache
|
|
|
|
dist: $(distdir).tar.gz
|
|
|
|
$(distdir).tar.gz: $(distdir)
|
|
tar chof - $(distdir) | gzip -9 -c > $@
|
|
rm -rf $(distdir)
|
|
|
|
$(distdir):
|
|
mkdir -p $(distdir)/src
|
|
mkdir -p $(distdir)/src/getdns
|
|
mkdir -p $(distdir)/src/test
|
|
mkdir -p $(distdir)/src/example
|
|
cp $(srcdir)/configure.ac $(distdir)
|
|
cp $(srcdir)/configure $(distdir)
|
|
cp $(srcdir)/Makefile.in $(distdir)
|
|
cp $(srcdir)/install-sh $(distdir)
|
|
cp $(srcdir)/config.sub $(distdir)
|
|
cp $(srcdir)/config.guess $(distdir)
|
|
cp $(srcdir)/src/Makefile.in $(distdir)/src
|
|
cp $(srcdir)/src/*.[ch] $(distdir)/src
|
|
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
|
|
cp $(srcdir)/src/test/*.can $(distdir)/src/test
|
|
cp $(srcdir)/src/example/Makefile.in $(distdir)/src/example
|
|
cp $(srcdir)/src/example/*.c $(distdir)/src/example
|
|
|
|
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 $@
|
|
|
|
configure.status: configure
|
|
./config.status --recheck
|
|
|
|
.PHONY: all distclean clean default
|