# # Rules for all phony targets. # .PHONY: all help make dep depend test check \ clean depclean indentclean distclean cvsclean svnclean \ index manhtml indent update-po \ doc dist release \ install uninstall \ rpmbuild rpm srpm all: $(alltarg) $(CATALOGS) help: @echo 'This Makefile has the following utility targets:' @echo @echo ' all build all binary targets' @echo ' install install compiled package and manual' @echo ' uninstall uninstall the package' @echo ' check / test run standardised tests on the compiled binary' @echo @echo 'Developer targets:' @echo @echo ' make rebuild the Makefile (after adding new files)' @echo ' dep / depend rebuild .d (dependency) files' @echo ' clean remove .o (object) and .c~ (backup) files' @echo ' depclean remove .d (dependency) files' @echo ' indentclean remove files left over from "make indent"' @echo ' distclean remove everything not distributed' @echo ' cvsclean remove everything not in CVS/SVN' @echo @echo ' index generate an HTML index of source code' @echo ' manhtml output HTML man page to stdout' @echo ' indent reformat all source files with "indent"' @echo ' update-po update the .po files' @echo @echo ' dist create a source tarball for distribution' @echo ' rpm build a binary RPM (passes $$RPMFLAGS to RPM)' @echo ' srpm build a source RPM (passes $$RPMFLAGS to RPM)' @echo ' release dist+rpm+srpm' @echo make: echo > $(srcdir)/autoconf/make/filelist.mk~ echo > $(srcdir)/autoconf/make/modules.mk~ cd $(srcdir); \ bash autoconf/scripts/makemake.sh \ autoconf/make/filelist.mk~ \ autoconf/make/modules.mk~ sh ./config.status dep depend: $(alldep) echo '#' > $(srcdir)/autoconf/make/depend.mk~ echo '# Dependencies.' >> $(srcdir)/autoconf/make/depend.mk~ echo '#' >> $(srcdir)/autoconf/make/depend.mk~ echo >> $(srcdir)/autoconf/make/depend.mk~ cat $(alldep) >> $(srcdir)/autoconf/make/depend.mk~ sh ./config.status clean: rm -f $(allobj) depclean: rm -f $(alldep) indentclean: cd $(srcdir) && for FILE in $(allsrc); do rm -fv ./$${FILE}~; done update-po: $(srcdir)/src/nls/$(PACKAGE).pot catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ lang=$(srcdir)/`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \ mv $$lang.po $$lang.old.po; \ if $(MSGMERGE) $$lang.old.po $(srcdir)/src/nls/$(PACKAGE).pot > $$lang.po; then \ rm -f $$lang.old.po; \ else \ echo "msgmerge for $$cat failed!"; \ rm -f $$lang.po; \ mv $$lang.old.po $$lang.po; \ chmod 644 $$lang.po; \ fi; \ done distclean: clean depclean rm -f $(alltarg) src/include/config.h rm -rf $(package)-$(version).tar* $(package)-$(version) rm -f *.html config.* rm Makefile cvsclean svnclean: distclean rm -f doc/lsm rm -f doc/$(package).spec rm -f doc/quickref.1 rm -f configure rm -f src/nls/*.gmo src/nls/*.mo echo > $(srcdir)/autoconf/make/depend.mk~ echo > $(srcdir)/autoconf/make/filelist.mk~ echo > $(srcdir)/autoconf/make/modules.mk~ doc: : index: (cd $(srcdir); sh autoconf/scripts/index.sh $(srcdir)) > index.html manhtml: @man2html ./doc/quickref.1 \ | sed -e '1,/
]*> ||ig' \ -e 's|]*>\([^<]*\)|\1|ig' \ -e '/|ig' \ -e 's/