view doc/manpages/DEFS.mk @ 24:a4899cdfc2d6 default tip

Obfuscate the regexps to strip off the IBM compiler's copyright banners. I don't want bots scanning github to think they're real copyright notices because that could cause real problems.
author David A. Holland
date Mon, 13 Jun 2022 00:40:23 -0400
parents 13d2b8934445
children
line wrap: on
line source

include $(BUILDTOP)/config.mk
include $(TOP)/mk/installdirs.mk

all: ag.1 agcl.1

subst.sed: $(TOP)/anagram/ag1/version.h $(SRCDIR)/DEFS.mk
	@echo '        [CREATE]  subst.sed'
	@sed < $(TOP)/anagram/ag1/version.h \
		'1d;s/^#define /s,@/;s/  */@,/;s/$$/,/' > subst.sed

ag.1: $(SRCDIR)/ag.mdoc subst.sed
	@echo '        [SUBST]   ag.1'
	@sed -f subst.sed < $(SRCDIR)/ag.mdoc > ag.1

agcl.1: $(SRCDIR)/agcl.mdoc subst.sed
	@echo '        [SUBST]   agcl.1'
	@sed -f subst.sed < $(SRCDIR)/agcl.mdoc > agcl.1

clean distclean:
	@echo '        [RM]      ag.1 agcl.1 subst.sed'
	@rm -f ag.1 agcl.1 subst.sed

install: install.$(OS)

install.unix: install.$(HASGUI)
	@$(TOP)/mk/mkinstalldirs.sh "$(MANDIR)/man1"
	@echo '        [CP]      agcl.1'
	@cp agcl.1 "$(MANDIR)/man1/"
	@(cd "$(MANDIR)/man1/" && chmod 644 agcl.1)

install.hasgui:
	@$(TOP)/mk/mkinstalldirs.sh "$(MANDIR)/man1"
	@echo '        [CP]      ag.1'
	@cp ag.1 "$(MANDIR)/man1/"
	@(cd "$(MANDIR)/man1/" && chmod 644 ag.1)

rules depend agfiles agclean:;

install.windows install.nogui:;

.PHONY: all clean distclean rules depend install agfiles agclean
.PHONY: install.windows install.unix install.hasgui install.nogui