# todo # Copyright (C) 2016 Red Hat Inc. # # This program 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 of the License, or # (at your option) any later version. # # This program 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 this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. include common-rules.mk ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = \ COPYING \ META.in \ README all_sources = $(TODO_SOURCES_ML) # You must adjust this to point to the right database host. The # database itself is hard-coded as 'todo'. Setting the environment # variable here merely tells PG'OCaml that. #export PGHOST=todo export PGDATABASE=todo bin_PROGRAMS = todo TODO_SOURCES_ML = \ todo_config.ml \ todo_types.ml \ todo_utils.ml \ todo_tag_utils.ml \ todo_add.ml \ todo_list.ml \ todo_move.ml \ todo_retire.ml \ todo_tag.ml \ todo_cmdline.ml \ todo.ml if !HAVE_OCAMLOPT TODO_OBJECTS = $(TODO_SOURCES_ML:.ml=.cmo) else TODO_OBJECTS = $(TODO_SOURCES_ML:.ml=.cmx) endif todo_SOURCES = dummy.c todo_DEPENDENCIES = $(TODO_OBJECTS) $(top_srcdir)/ocaml-link.sh todo_LINK = \ $(top_srcdir)/ocaml-link.sh -- \ $(OCAMLFIND) $(OCAMLBEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) \ $(OCAMLLINKFLAGS) $(TODO_OBJECTS) -o $@ BUILT_SOURCES = dummy.c dummy.c: rm -f $@ touch $@ # Dependencies. depend: .depend .depend: $(all_sources) rm -f $@ $@-t $(OCAMLFIND) ocamldep $(OCAMLPACKAGES) -I $(abs_srcdir) $^ | \ $(SED) 's/ *$$//' | \ $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \ $(SED) -e 's,$(abs_srcdir)/,$(builddir)/,g' | \ sort > $@-t mv $@-t $@ -include .depend # RPM package. rpm: dist rpmbuild -ta $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz if HAVE_POD2MAN #man_MANS = #goaljobs.1: goaljobs.pod # $(POD2MAN) -c "Goaljobs" --release $(PACKAGE)-$(VERSION) $< > $@-t # mv $@-t $@ endif