💾 Archived View for gmn.clttr.info › sources › photo-stats.git › tree › Makefile.txt captured on 2023-11-04 at 11:56:44.

View Raw

More Information

⬅️ Previous capture (2023-05-24)

-=-=-=-=-=-=-

VERSION=1.1
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin
MANDIR?=$(PREFIX)/share/man
DOCDIR?=$(PREFIX)/share/doc
COMPLDIR?=$(PREFIX)/share/bash-completion
.DEFAULT_GOAL=all

phosta:

phosta.1: phosta.1.scd
	scdoc < {body}lt; > $@

phosta-alias.5: phosta-alias.5.scd
	scdoc < {body}lt; > $@

phosta-examples.7: phosta-examples.7.scd
	scdoc < {body}lt; > $@

phosta-faq.7: phosta-faq.7.scd
	scdoc < {body}lt; > $@

all: phosta phosta.1 phosta-alias.5 phosta-examples.7 phosta-faq.7

clean:
	rm -rf phosta.1 phosta-alias.5 phosta-examples.7 phosta-faq.7

install: all
	mkdir -p $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(MANDIR)/man1 $(DESTDIR)/$(MANDIR)/man5 $(DESTDIR)/$(MANDIR)/man7 $(DESTDIR)/$(DOCDIR)/phosta/ $(DESTDIR)/$(COMPLDIR)/completions
	install -m755 phosta $(DESTDIR)/$(BINDIR)/phosta
	install -m644 phosta.1 $(DESTDIR)/$(MANDIR)/man1/phosta.1
	install -m644 phosta-alias.5 $(DESTDIR)/$(MANDIR)/man5/phosta-alias.5
	install -m644 phosta-examples.7 $(DESTDIR)/$(MANDIR)/man7/phosta-examples.7
	install -m644 phosta-faq.7 $(DESTDIR)/$(MANDIR)/man7/phosta-faq.7
	install -m644 LICENSE $(DESTDIR)/$(DOCDIR)/phosta/LICENSE
	install -m644 phosta-completion.sh $(DESTDIR)/$(COMPLDIR)/completions/phosta

uninstall:
	rm -f $(DESTDIR)/$(BINDIR)/phosta
	rm -f $(DESTDIR)/$(MANDIR)/man1/phosta.1
	rm -f $(DESTDIR)/$(MANDIR)/man5/phosta-alias.5
	rm -f $(DESTDIR)/$(MANDIR)/man7/phosta-examples.7
	rm -f $(DESTDIR)/$(MANDIR)/man7/phosta-faq.7
	rm -rf $(DESTDIR)/$(DOCDIR)/phosta/
	rm -rf $(DESTDIR)/$(COMPLDIR)/completions/phosta

check: all
	@find test -perm -111 -exec '{}' \;