photo-stats

statistics processor for the terminal
git clone https://git.clttr.info/photo-stats.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

Makefile (1537B)


      1 VERSION=1.1
      2 PREFIX?=/usr/local
      3 BINDIR?=$(PREFIX)/bin
      4 MANDIR?=$(PREFIX)/share/man
      5 DOCDIR?=$(PREFIX)/share/doc
      6 COMPLDIR?=$(PREFIX)/share/bash-completion
      7 .DEFAULT_GOAL=all
      8 
      9 phosta:
     10 
     11 phosta.1: phosta.1.scd
     12 	scdoc < $< > $@
     13 
     14 phosta-alias.5: phosta-alias.5.scd
     15 	scdoc < $< > $@
     16 
     17 phosta-examples.7: phosta-examples.7.scd
     18 	scdoc < $< > $@
     19 
     20 phosta-faq.7: phosta-faq.7.scd
     21 	scdoc < $< > $@
     22 
     23 all: phosta phosta.1 phosta-alias.5 phosta-examples.7 phosta-faq.7
     24 
     25 clean:
     26 	rm -rf phosta.1 phosta-alias.5 phosta-examples.7 phosta-faq.7
     27 
     28 install: all
     29 	mkdir -p $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(MANDIR)/man1 $(DESTDIR)/$(MANDIR)/man5 $(DESTDIR)/$(MANDIR)/man7 $(DESTDIR)/$(DOCDIR)/phosta/ $(DESTDIR)/$(COMPLDIR)/completions
     30 	install -m755 phosta $(DESTDIR)/$(BINDIR)/phosta
     31 	install -m644 phosta.1 $(DESTDIR)/$(MANDIR)/man1/phosta.1
     32 	install -m644 phosta-alias.5 $(DESTDIR)/$(MANDIR)/man5/phosta-alias.5
     33 	install -m644 phosta-examples.7 $(DESTDIR)/$(MANDIR)/man7/phosta-examples.7
     34 	install -m644 phosta-faq.7 $(DESTDIR)/$(MANDIR)/man7/phosta-faq.7
     35 	install -m644 LICENSE $(DESTDIR)/$(DOCDIR)/phosta/LICENSE
     36 	install -m644 phosta-completion.sh $(DESTDIR)/$(COMPLDIR)/completions/phosta
     37 
     38 uninstall:
     39 	rm -f $(DESTDIR)/$(BINDIR)/phosta
     40 	rm -f $(DESTDIR)/$(MANDIR)/man1/phosta.1
     41 	rm -f $(DESTDIR)/$(MANDIR)/man5/phosta-alias.5
     42 	rm -f $(DESTDIR)/$(MANDIR)/man7/phosta-examples.7
     43 	rm -f $(DESTDIR)/$(MANDIR)/man7/phosta-faq.7
     44 	rm -rf $(DESTDIR)/$(DOCDIR)/phosta/
     45 	rm -rf $(DESTDIR)/$(COMPLDIR)/completions/phosta
     46 
     47 check: all
     48 	@find test -perm -111 -exec '{}' \;