freq

count frequencies of keys in text
git clone git://bvnf.space/freq.git
Log | Files | Refs | README

Makefile (398B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
.POSIX:

XCFLAGS = $(CFLAGS) -Wall -Wextra -pedantic -Og -g -D_XOPEN_SOURCE=700
PREFIX = /usr/local
MANPATH = $(PREFIX)/share/man

all: freq
freq: freq.c
	$(CC) $(XCFLAGS) freq.c -o $@

clean:
	rm -f freq

install: freq
	mkdir -p $(DESTDIR)$(PREFIX)/bin/
	mkdir -p $(DESTDIR)$(MANPATH)/man1/
	cp freq  $(DESTDIR)$(PREFIX)/bin/freq
	cp freq.1 $(DESTDIR)$(MANPATH)/man1/freq.1

.PHONY: clean install