📄 makefile.in
字号:
.latte.html: -rm -f $@ if ! latte-html -l web/style.latte -o $@ $<; then rm $@; exit 1 ; fi.c.o: $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< ## OVERALL targets## NOTE: "all" must be the first (default) rule, aside from patterns.# We don't build the web pages by default, because many people will# not have the tools to do it. Just use all-web if you want it.all: $(bin_PROGRAMS)all-web: all-latteall-latte: $(latte_HTML)## BUILD targetsdistcc@EXEEXT@: $(distcc_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(distcc_obj) $(LIBS)distccd@EXEEXT@: $(distccd_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(distccd_obj) $(LIBS) distccmon-text@EXEEXT@: $(mon_obj) src/mon-text.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(mon_obj) src/mon-text.o $(LIBS)h_exten@EXEEXT@: $(h_exten_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_exten_obj) $(LIBS)h_issource@EXEEXT@: $(h_issource_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_issource_obj) $(LIBS)h_sa2str@EXEEXT@: $(h_sa2str_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_sa2str_obj) $(LIBS)h_scanargs@EXEEXT@: $(h_scanargs_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_scanargs_obj) $(LIBS)h_hosts@EXEEXT@: $(h_hosts_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_hosts_obj) $(LIBS)h_argvtostr@EXEEXT@: $(h_argvtostr_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_argvtostr_obj) $(LIBS)h_parsemask@EXEEXT@: $(h_parsemask_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_parsemask_obj) $(LIBS)h_strip@EXEEXT@: $(h_strip_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_strip_obj) $(LIBS)h_ccvers@EXEEXT@: $(h_ccvers_obj) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(h_ccvers_obj) $(LIBS)src/mon-gnome.o: src/mon-gnome.c $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) \ $(GNOME_CFLAGS) \ $(srcdir)/src/mon-gnome.csrc/renderer.o: src/renderer.c $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) \ $(GNOME_CFLAGS) \ $(srcdir)/src/renderer.cdistccmon-gnome@EXEEXT@: $(mon_obj) $(gnome_obj) $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LIBS) \ $(GNOME_CFLAGS) $(GNOME_LIBS) \ $(mon_obj) $(gnome_obj)## Dist targets# The sub-targets copy (and if necessary, build) various files that# have to go into the tarball. They also create necessary directories# -- bear in mind that they might be run in parallel.# This looks a bit gross to me, but it's not as bad as it might be :-/dist: -rm -fr $(distdir) $(MAKE) dist-files $(TAR) cfh $(tarball) $(distdir) $(BZIP2) -vf $(tarball) rm -r $(distdir) cp NEWS $(distnews)distcheck: dist rm -rf '+distcheck' mkdir '+distcheck' cd '+distcheck' && bunzip2 < ../$(tarball_bz2) | $(TAR) xv && \ cd $(distdir) && ./configure --prefix=`pwd`/prefix && \ $(MAKE) && $(MAKE) install && $(MAKE) maintainer-check && \ $(MAKE) clean rm -rf '+distcheck'dist-sign: gpg -a --detach-sign $(tarball_bz2)# the sort function removes duplicatesdist-files: $(dist_files) for f in $(dist_files); do mkdir -p $(distdir)/`dirname $$f` || exit 1; \ cp -a $(srcdir)/$$f $(distdir)/$$f || exit 1; done## BUILD (web) targets$(latte_HTML): web/style.latte## BUILD manual targetsman/distcc_1.html: man/distcc.1 troff2html -man man/distcc.1 > $@man/distccd_1.html: man/distccd.1 troff2html -man man/distccd.1 > $@man/distccmon_text_1.html: man/distccmon-text.1 troff2html -man man/distccmon-text.1 > $@######################################################################## CHECK targetscheck_programs: $(check_PROGRAMS) $(bin_PROGRAMS)# WARNING: This resets the path to avoid any confusion caused by# having distcc masquerades already on the path. If you have gcc# installed elsewhere this won't work....maintainer-check: check_programs if test x$(PYTHON) != x; then \ $(PYTHON) -c 'import sys; print sys.version'; \ PATH=`pwd`:/usr/local/bin:/bin:/usr/bin $(PYTHON) $(srcdir)/test/testdistcc.py; \ else echo "WARNING: python not found; tests skipped"; \ fi# NB: This does not depend upon install; you might want to test another version.maintainer-installcheck: check_programs if test x$(PYTHON) != x; then \ $(PYTHON) -c 'import sys; print sys.version'; \ PATH="$(bindir):`pwd`:$$PATH" $(PYTHON) $(srcdir)/test/testdistcc.py; \ else echo "WARNING: python not found; tests skipped"; \ ficheck: @echo Please try 'make maintainer-check' instead.installcheck: @echo Please try 'make maintainer-check' instead.######################################################################## BENCHMARK targetsbenchmark: @echo "The distcc macro-benchmark uses your existing distcc installation" @if [ "$$DISTCC_HOSTS" ]; \ then echo "DISTCC_HOSTS=\"$$DISTCC_HOSTS\""; \ else echo "You must set up servers and set DISTCC_HOSTS before running the benchmark"; \ exit 1; \ fi @echo "This benchmark may download a lot of source files, and it takes a " @echo "long time to run. Interrupt now if you want." @echo @echo "Pass BENCH_ARGS to make to specify which benchmarks to run." @echo @sleep 5 cd bench && $(PYTHON) benchmark.py $(BENCH_ARGS)## CLEAN targets# Also clean binaries which are optionally builtclean: clean-autoconf clean-lzo rm -f src/*.o popt/*.o rm -f $(check_PROGRAMS) $(bin_PROGRAMS) rm -f distccmon-gnome rm -rf testtmpclean-autoconf: rm -f config.cache config.logclean-lzo: rm -f lzo/*.o lzo/testminimaintainer-clean: distclean maintainer-clean-web \ maintainer-clean-autoconf clean# configure and co are distributed, but not in CVSmaintainer-clean-autoconf: rm -f configure src/config.h.inmaintainer-clean-web: rm -f $(latte_HTML)distclean-autoconf: rm -f Makefile src/config.h config.status config.cache config.log rm -rf autom4te.cachedistclean: distclean-autoconf clean## MAINTAINER targetsupload-web: all-web rsync -avz web/ survey.txt \ --exclude CVS --exclude '*~' --exclude '*.latte' \ samba.org:/home/httpd/distcc/upload-man: $(man_HTML) rsync -avz $(man_HTML) \ --exclude CVS --exclude '*~' --exclude '*.latte' \ samba.org:/home/httpd/distcc/man/upload-dist: rsync -avP $(tarball_bz2) $(distnews) $(tarball_sig) samba.org:/home/ftp/pub/distcc/### CVSPLOTcvsplot: cvsplot -cvsdir . \ -include '\.(c|h|py)$$' \ -linedata /tmp/linedata.txt \ -gnuplotlinedata web/cvslinedata.png \ -filedata /tmp/filedata.txt \ -gnuplotfiledata web/cvsfiledata.png### INSTALL targets# TODO: Allow root directory to be overridden for use in building# packages.showpaths: @echo "'make install' will install distcc as follows:" @echo " man pages $(DESTDIR)$(man1dir)" @echo " documents $(DESTDIR)$(docdir)" @echo " programs $(DESTDIR)$(bindir)" @echo " system configuration $(DESTDIR)$(sysconfdir)" @echo " shared data files $(DESTDIR)$(pkgdatadir)"# install-sh can't handle multiple arguments, but we don't need any# tricky features so mkinstalldirs and cp will doinstall: showpaths install-doc install-man install-programs install-example @INSTALL_GNOME@install-programs: $(bin_PROGRAMS) $(mkinstalldirs) $(DESTDIR)$(bindir) for p in $^; do \ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir) || exit 1; \ doneinstall-man: $(man1_MEN) $(mkinstalldirs) $(DESTDIR)$(man1dir) for p in $^; do \ $(INSTALL_DATA) $$p $(DESTDIR)$(man1dir) || exit 1; \ doneinstall-doc: $(pkgdoc_DOCS) $(mkinstalldirs) $(DESTDIR)$(docdir) for p in $^; do \ $(INSTALL_DATA) $$p $(DESTDIR)$(docdir) || exit 1; \ doneinstall-example: $(example_DOCS) $(mkinstalldirs) $(DESTDIR)$(docdir)/example for p in $^; do \ $(INSTALL_DATA) $$p $(DESTDIR)$(docdir)/example || exit 1; \ doneinstall-gnome-data: $(gnome_data) $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) for p in $^; do \ $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir) || exit 1; \ done## LINBOT targets# This target checks the website for broken links. It's probably not# very interesting unless you are a maintainer and therefore in a# position to fix them.linbot-run: mkdir -p linbot-report linbot -o linbot-report http://distcc.samba.org/## ANALOG targets# These are probably only interesting for maintainersanalog-all: $(MAKE) analog-download $(MAKE) analog-resolve $(MAKE) analog-runanalog-download: rsync -avz 'samba.org:/var/log/httpd/distcc/*_log*' analog/analog-run: mkdir -p analog/report && cd analog && analog -G +gdistcc.analoganalog-resolve: cat analog/access_log_* analog/access_log | \ jdresolve --recursive --database analog/jdresolve.db - \ --progress --timeout 15 --sockets 512 --linecache 100000 \ > analog/resolved_log
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -