AUTHOR := Andre Noll
EMAIL := maan@tuebingen.mpg.de
COPYRIGHT_YEAR := 2019
-PACKAGE_HOMEPAGE := http://people.tuebingen.mpg.de/maan/$(PACKAGE)/
-CLONE_URL := git://git.tuebingen.mpg.de/$(PACKAGE)/
-GITWEB_URL := http://git.tuebingen.mpg.de/$(PACKAGE).git
+PACKAGE_HOMEPAGE := https://people.tuebingen.mpg.de/maan/$(PACKAGE)/
+CLONE_URL := https://git.tuebingen.mpg.de/$(PACKAGE)/
+GITWEB_URL := https://git.tuebingen.mpg.de/$(PACKAGE).git
LICENSE := GNU GPL version 3
LICENSE_URL := https://www.gnu.org/licenses/gpl-3.0-standalone.html
-HOME_URL := http://people.tuebingen.mpg.de/maan/
+HOME_URL := https://people.tuebingen.mpg.de/maan/
define DESCRIPTION1 :=
Like fortune(6), tfortune is a Unix command line utility which prints
exe := tfortune
man := tfortune.6.gz
+epigrams := epigrams/en.tfortunes
all: $(man) $(exe)
man build-indep: $(man)
exe build-arch: $(exe)
ifeq ($(findstring clean, $(MAKECMDGOALS)),)
-include $(deps)
-include config.mak
+-include config.mak
endif
config.h.in: configure.ac
index.html tfortune.suite: %: %.m4
$(call SAY, M4 $<)
$(M4) -D "AUTHOR=$(AUTHOR)" -D "COPYRIGHT_YEAR=$(COPYRIGHT_YEAR)" \
+ -D "DATADIR=$(datadir)" \
-D "PACKAGE=$(PACKAGE)" \
-D "SLOGAN=$(SLOGAN)" \
-D "EMAIL=$(EMAIL)" \
TF_CPPFLAGS += -DUNAME_RS='"$(uname_rs)"'
TF_CPPFLAGS += -DLICENSE='"$(LICENSE)"'
TF_CPPFLAGS += -DLICENSE_URL='"$(LICENSE_URL)"'
+TF_CPPFLAGS += -DDATADIR='"$(datadir)"'
TF_CPPFLAGS += -I/usr/local/include
TF_CFLAGS += -g
git clean -dfqx > /dev/null 2>&1
mandir := $(datarootdir)/man/man6
+epidir := $(datadir)/tfortunes/epigrams
INSTALL ?= install
INSTALL_PROGRAM ?= $(INSTALL) -m 755
INSTALL_DATA ?= $(INSTALL) -m 644
endif
install install-strip: all
- $(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)
+ $(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) $(DESTDIR)$(epidir)
$(INSTALL_PROGRAM) $(strip_option) $(exe) $(DESTDIR)$(bindir)
$(INSTALL_DATA) $(man) $(DESTDIR)$(mandir)
+ $(INSTALL_DATA) $(epigrams) $(DESTDIR)$(epidir)
define README :=
tfortune - $(SLOGAN)