X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=5ad483bbf5787879d44f45562ca3a9f9efdd7fb6;hb=278b70e25a37bae191066c4e08f96fd8624f31e4;hp=b0cd34d22a5f032703deff50c68de3bcf2933f4f;hpb=54b9de32d887856379b9874335d4d59740eb111e;p=tfortune.git diff --git a/Makefile b/Makefile index b0cd34d..5ad483b 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ MAKEFLAGS += -Rr RM := rm -f MKDIR_P := mkdir -p CHMOD := chmod -GZIP := gzip -f9 +GZIP := gzip -nf9 ifeq ("$(origin CC)", "default") CC := cc @@ -58,15 +58,18 @@ cc_version := $(shell $(CC) --version | head -n 1) build_date := $(shell date) uname_rs := $(shell uname -rs) -all := tfortune tfortune.6.gz -all: $(all) +exe := tfortune +man := tfortune.6.gz +all: $(man) $(exe) +man build-indep: $(man) +exe build-arch: $(exe) deps := txp.bison.d txp.flex.d ast.d tfortune.d util.d txp.flex.d \ tfortune.lsg.d version.d linhash.d ifeq ($(findstring clean, $(MAKECMDGOALS)),) -include $(deps) -include config.mak +-include config.mak endif config.h.in: configure.ac @@ -179,14 +182,15 @@ tfortune: $(deps:.d=.o) $(CC) $^ -o $@ $(TF_LDFLAGS) $(LDFLAGS) .PHONY: all mostlyclean clean distclan maintainer-clean install \ - install-strip README + install-strip README exe build-arch man build-indep mostlyclean: - $(RM) tfortune *.o *.d + $(RM) $(exe) *.o *.d clean: mostlyclean - $(RM) *.lsg.* *.flex.* *.bison.* *.6.gz *.suite + $(RM) *.lsg.* *.flex.* *.bison.* $(man) *.suite distclean: clean - $(RM) config.mak config.status config.log config.h config.h.in version.c + $(RM) config.mak config.status config.log config.h config.h.in \ + version.c configure.sh $(RM) -r autom4te.cache maintainer-clean: git clean -dfqx > /dev/null 2>&1 @@ -201,8 +205,8 @@ endif install install-strip: all $(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) - $(INSTALL_PROGRAM) $(strip_option) tfortune $(DESTDIR)$(bindir) - $(INSTALL_DATA) tfortune.6.gz $(DESTDIR)$(mandir) + $(INSTALL_PROGRAM) $(strip_option) $(exe) $(DESTDIR)$(bindir) + $(INSTALL_DATA) $(man) $(DESTDIR)$(mandir) define README := tfortune - $(SLOGAN) @@ -223,8 +227,8 @@ Resources Documentation ~~~~~~~~~~~~~ -See tfortune.suite. Or build the man page with \"make tfortune.6.gz\" -and run \"man -l tfortune.6.gz\". +See tfortune.suite. Or build the man page with \"make man\" +and run \"man -l $(man)\". Dependencies ~~~~~~~~~~~~