2013-11-21 19:39:03 -06:00
#
# @configure_input@
#
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $( tarname) -$( version)
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
2013-11-29 08:41:06 -06:00
# datarootdir is here to please some checkers
datarootdir = @datarootdir@
mandir = @mandir@
INSTALL = @INSTALL@
2013-11-21 19:39:03 -06:00
srcdir = @srcdir@
VPATH = @srcdir@
2013-12-10 04:44:36 -06:00
EDITS = -e 's/@' 'version@/$(version)/g'
2013-11-21 19:39:03 -06:00
DOCDIRS = html latex man
2014-02-19 16:30:01 -06:00
MANPAGES3 = libgetdns.3 getdns_address.3 getdns_cancel_callback.3 getdns_context.3 getdns_context_create.3 getdns_context_set.3 getdns_dict.3 getdns_dict_get.3 getdns_dict_set.3 getdns_free_sync_request_memory.3 getdns_general.3 getdns_hostname.3 getdns_list.3 getdns_list_get.3 getdns_list_set.3 getdns_service.3
2013-11-21 19:39:03 -06:00
default : all
all : doc
2013-12-10 03:32:57 -06:00
doc : $( MANPAGES 3)
2013-11-21 19:39:03 -06:00
cd ../src && doxygen
2013-12-10 03:32:57 -06:00
.SUFFIXES : .3.in .3
.3.in.3 :
2013-12-10 04:44:36 -06:00
sed $( EDITS) -e "s/@date@/`date +'%B %Y'`/g" $< > $@
2013-11-29 08:41:06 -06:00
2014-02-19 16:30:01 -06:00
# we assume that we want a separate file for each "name" specified for each man page
# and consider these "alternate names" simple copies of the main man page
2013-12-10 03:32:57 -06:00
install : $( MANPAGES 3)
2013-11-29 08:41:06 -06:00
$( INSTALL) -m 755 -d $( DESTDIR) $( mandir)
$( INSTALL) -m 755 -d $( DESTDIR) $( mandir) /man3
2014-02-19 16:30:01 -06:00
for x in $( MANPAGES3) ; do echo $( INSTALL) -m 644 $$ x $( DESTDIR) $( mandir) /man3; $( INSTALL) -m 644 $$ x $( DESTDIR) $( mandir) /man3; for altpg in $$ ( ./manpgaltnames $$ x) ; do cp $$ x $$ altpg; echo $( INSTALL) -m 644 $$ altpg $( DESTDIR) $( mandir) /man3; $( INSTALL) -m 644 $$ altpg $( DESTDIR) $( mandir) /man3; done ; done
2013-11-29 08:41:06 -06:00
uninstall :
2014-02-19 16:30:01 -06:00
for x in $( MANPAGES3) ; do echo rm -f $( DESTDIR) $( mandir) /man3/$$ x; rm -f $( DESTDIR) $( mandir) /man3/$$ x; for altpg in $$ ( ./manpgaltnames $$ x) ; do echo rm -f $( DESTDIR) $( mandir) /man3/$$ altpg; rm -f $( DESTDIR) $( mandir) /man3/$$ altpg; done ; done
2013-11-29 08:41:06 -06:00
2013-11-21 19:39:03 -06:00
clean :
2014-02-19 16:30:01 -06:00
for x in $( MANPAGES3) ; do rm -f $$ ( ./manpgaltnames $$ x) ; done
2013-12-10 03:32:57 -06:00
rm -rf $( DOCDIRS) $( MANPAGES3)
2013-11-21 19:39:03 -06:00
distclean : clean
rm -f Makefile config.status config.log
rm -Rf autom4te.cache
Makefile : Makefile .in ../config .status
cd .. && ./config.status $@
configure.status : configure
cd .. && ./config.status --recheck
.PHONY : clean $( DOC )