RM := rm -f
MKDIR_P := mkdir -p
CHMOD := chmod
+GZIP := gzip -f9
ifeq ("$(origin CC)", "default")
CC := cc
build_date := $(shell date)
uname_rs := $(shell uname -rs)
-all := tfortune tfortune.6
+all := tfortune tfortune.6.gz
all: $(all)
deps := txp.bison.d txp.flex.d ast.d tfortune.d util.d txp.flex.d \
$(call SAY, LSGH $<)
$(LOPSUBGEN) --gen-header < $<
-%.6: %.suite version.c
+%.6.gz: %.suite version.c
$(call SAY, LSGM $<)
- $(LOPSUBGEN) --gen-man=$@ --version-string $(GIT_VERSION) < $<
+ $(LOPSUBGEN) --gen-man=${@:.gz=} --version-string $(GIT_VERSION) < $<
+ $(GZIP) ${@:.gz=}
%.flex.c: %.lex
$(call SAY, FLEX $<)
mostlyclean:
$(RM) tfortune *.o *.d
clean: mostlyclean
- $(RM) *.lsg.* *.flex.* *.bison.* *.6 *.suite
+ $(RM) *.lsg.* *.flex.* *.bison.* *.6.gz *.suite
distclean: clean
$(RM) config.mak config.status config.log config.h config.h.in version.c
$(RM) -r autom4te.cache
install install-strip: all
$(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)
$(INSTALL_PROGRAM) $(strip_option) tfortune $(DESTDIR)$(bindir)
- $(INSTALL_DATA) tfortune.6 $(DESTDIR)$(mandir)
+ $(INSTALL_DATA) tfortune.6.gz $(DESTDIR)$(mandir)
define README :=
tfortune - $(SLOGAN)
Documentation
~~~~~~~~~~~~~
-See tfortune.suite. Or build the man page with \"make tfortune.6\"
-and run \"man -l tfortune.6\".
+See tfortune.suite. Or build the man page with \"make tfortune.6.gz\"
+and run \"man -l tfortune.6.gz\".
Dependencies
~~~~~~~~~~~~