# $Id: Makefile.in 706 2005-05-03 18:36:28Z wsnyder $ #***************************************************************************** # DESCRIPTION: Dinotrace: Makefile pre-configure version # # This file is part of Dinotrace. # # Author: Wilson Snyder or # # Code available from: http://www.veripool.com/dinotrace # #***************************************************************************** # # This file is covered by the GNU public licence. # # Dinotrace is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # Dinotrace is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Dinotrace; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # #****************************************************************************/ # # make all to compile and build Dinotrace. # make install to install it. # make TAGS to update tags tables. # # make clean or make mostlyclean # Delete all files from the current directory that are normally # created by building the program. Don't delete the files that # record the configuration. Also preserve files that could be made # by building, but normally aren't because the distribution comes # with them. # # make distclean # Delete all files from the current directory that are created by # configuring or building the program. If you have unpacked the # source and built the program without creating any other files, # `make distclean' should leave only the files that were in the # distribution. # # make maintainer-clean # Delete everything from the current directory that can be # reconstructed with this Makefile. This typically includes # everything deleted by distclean, plus more: C source files # produced by Bison, tags tables, info files, and so on. # # make extraclean # Still more severe - delete backup and autosave files, too. #### Start of system configuration section. #### srcdir = . HOST = i386-unknown-gnu INSTALL = /usr/local/bin/ginstall -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 MAKEINFO = makeinfo TEXI2DVI = texi2dvi PERL = /usr/local/bin/perl #### Don't edit: You're much better using configure switches to set these prefix = exec_prefix = ${prefix} # Directory in which to install scripts. bindir = ${exec_prefix}/bin # Directory in which to install library files. datadir = ${prefix}/share # Directory in which to install documentation info files. infodir = ${prefix}/info # Directory in which to install package specific files # Note this gets coded into src/config.h also pkgdatadir = ${prefix}/share/dinotrace #### End of system configuration section. #### ###################################################################### SHELL = /bin/sh SUBDIRS = src lisp INFOS = dinotrace.info INSTALL FAQ dinotrace.txt # Files that can be generated, but should be up to date for a distribution. DISTDEP = $(INFOS) Makefile src/dinodoc.pl src/dist_date.pl # Files to distribute. DISTBIN = $(wildcard bin/dinotrace-*) DISTFILES = $(INFOS) COPYING Changes TODO configure *.in \ config.sub config.guess \ install-sh mkinstalldirs *.texi *.com \ src/*.in src/*.h src/*.c src/*.pl src/*.com lisp/* traces/* \ $(DISTBIN) all: dinotrace_exe info .PHONY:dinotrace_exe .PHONY:dinotrace dinotrace_exe dinotrace: -mkdir -p bin @echo making dinotrace in src cd src && $(MAKE) ../dinotrace (cp dinotrace bin/dinotrace-$(HOST) >/dev/null 2>&1\ || cp dinotrace.exe bin/dinotrace-$(HOST).exe >/dev/null 2>&1) info: $(INFOS) # Use --no-split to avoid creating filenames > 14 chars. dinotrace.info: dinotrace.texi $(MAKEINFO) -I$(srcdir) $(srcdir)/dinotrace.texi --no-split --output=$@ dinotrace.txt: dinotrace.texi $(MAKEINFO) -I$(srcdir) $(srcdir)/dinotrace.texi --output=$@ \ --no-headers --no-validate INSTALL: install.texi $(MAKEINFO) -I$(srcdir) $(srcdir)/install.texi --output=$@ \ --no-headers --no-validate FAQ: faq.texi $(MAKEINFO) -I$(srcdir) $(srcdir)/faq.texi --output=$@ \ --no-headers --no-validate %.html: %.texi perl -pe 's/\@(dmenu|resource|switch|config)/\@code/g; \ s/\@widget/\@emph/g; s/\@prog/\@strong/g; \ $$_="" if (/^\@macro/ .. /^\@end macro/); \ ' $*.texi >$*.tmp texi2html -monolithic $*.tmp mv $*.tmp.html $*.html rm $*.tmp dvi: dinotrace.dvi dinotrace.dvi: dinotrace.texi $(TEXI2DVI) $(srcdir)/dinotrace.texi installdirs: $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) install: all info installdirs install-info for p in dinotrace; do \ $(INSTALL_PROGRAM) $$p $(bindir)/$$p; \ done @echo "" @echo "*** Lisp files not installed, you may want to" @echo "*** cd lisp ; make install" @echo "" @echo "Type 'setenv DISPLAY :0.0' then 'dinotrace' to test." # Don't cd, to avoid breaking install-sh references. install-info: info installdirs for i in *.info*; do \ $(INSTALL_DATA) $$i $(infodir)/$$i; \ done uninstall: rm -fr $(datadir) cd $(infodir) && rm -f dinotrace.info* # autoheader might not change config.h.in, so touch a stamp file. ${srcdir}/config.h.in: stamp-h.in ${srcdir}/stamp-h.in: configure.in Makefile.in ${srcdir}/Makefile.in ${srcdir}/config.h.in cd ${srcdir} && autoheader echo timestamp > ${srcdir}/stamp-h.in config.h: stamp-h stamp-h: config.h.in config.status ./config.status Makefile: Makefile.in config.status ./config.status src/Makefile: src/Makefile.in config.status ./config.status config.status: configure ./config.status --recheck configure: configure.in autoconf maintainer-clean:: @echo "This command is intended for maintainers to use;" @echo "rebuilding the deleted files requires makeinfo." rm -f *.info* $(INFOS) faq.html dinotrace.html configure bin/* clean mostlyclean distclean maintainer-clean maintainer-copy:: for dir in $(SUBDIRS); do \ echo making $@ in $$dir ; \ (cd $$dir && $(MAKE) $@) ; \ done clean mostlyclean distclean maintainer-clean:: rm -f $(SCRIPTS) *.tmp rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs rm -f *.ev *.evs *.ov *.ovs *.cv *.cvs *.ma *.mas distclean maintainer-clean:: rm -f Makefile config.status config.cache config.log dinotrace dinotrace.exe TAGS TAGFILES=${srcdir}/src/*.c ${srcdir}/src/*.h ${srcdir}/src/[a-z]*.in \ ${srcdir}/[a-z]*.in ${srcdir}/*.texi TAGS: $(TAGFILES) etags $(TAGFILES) tag: distname=`sed -e '/DTVERSION/!d' \ -e 's/[^0-9]*\([0-9.a-z]*\).*/dinotrace_\1/' \ -e 's/[^A-Za-z0-9]/_/g' \ -e q src/config.h.in`; \ svnorcvs tag $$distname valgrind: dinotrace valgrind --suppressions=$(HOME)/.valgrind.supp ./dinotrace # Don't depend on DISTFILES because there's no rule for "standards.info*". dist: $(DISTDEP) maintainer-copy distname=`sed -e '/DTVERSION/!d' \ -e 's/[^0-9]*\([0-9.a-z]*\).*/dinotrace-\1/' -e q src/config.h.in`; \ rm -fr $$distname; \ mkdir $$distname $$distname/src $$distname/lisp $$distname/traces $$distname/bin; \ for file in $(DISTFILES); do \ ln $$file $$distname/$$file \ || { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \ done; \ chmod -R a+r $$distname; \ tar chf $$distname.tar $$distname; \ gzip --force --best $$distname.tar; \ rm -fr $$distname; \ maintainer-dist: dist tag echo "****** Did you rebuild all versions in .../bin ?" cp *.gz ~/backpack cp *.gz ~/src/kits maintainer-diff: distname=`sed -e '/DTVERSION/!d' \ -e 's/[^0-9]*\([0-9.a-z]*\).*/dinotrace_\1/' \ -e 's/[^A-Za-z0-9]/_/g' \ -e q src/config.h.in`; \ svnorcvs diff $$distname