git home / emma home
logo

typie

Minimal typing practice tool.
git clone https://git.y1.nz/archives/typie.tar.gz
README | Files | Log | Refs | LICENSE

Makefile


      1 
      2 include config.mk
      3 
      4 typie: main.c typer.o opt.o config.mk
      5 	$(CC) main.c typer.o opt.o -o typie
      6 
      7 typer.o: typer.c typer.h config.mk
      8 	$(CC) -c typer.c -o typer.o
      9 
     10 opt.o: opt.c opt.h config.mk
     11 	$(CC) -c opt.c -o opt.o
     12 
     13 config.mk:
     14 	cp -n config.default.mk config.mk
     15 
     16 clean:
     17 	rm -f typer.o opt.o typie
     18 
     19 install: typie config.mk
     20 	mkdir -p $(PREFIX)/bin
     21 	cp -f typie $(PREFIX)/bin
     22 	chmod 755 $(PREFIX)/bin/typie
     23 	mkdir -p $(MANPREFIX)/man1
     24 	sed "s/VERSION/$(VERSION)/g" < typie.1 > $(MANPREFIX)/man1/typie.1
     25 	chmod 644 $(MANPREFIX)/man1/typie.1
     26 
     27 uninstall: config.mk
     28 	rm -f $(PREFIX)/bin/typie
     29 	rm -f $(MANPREFIX)/man1/typie.1
     30 

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.