bf

a simple toy bf compiler in hare, made for teaching!
Log | Files | Refs

Makefile (349B)


      1 
      2 .POSIX:
      3 .SUFFIXES:
      4 HARE=hare
      5 HAREFLAGS=
      6 
      7 DESTDIR=
      8 PREFIX=/usr/local
      9 BINDIR=$(PREFIX)/bin
     10 
     11 HARE_SOURCES != find . -name '*.ha'
     12 
     13 all:  bf
     14 
     15 bf: $(HARE_SOURCES)
     16 	$(HARE) build $(HAREFLAGS) -o $@ cmd/$@/
     17 
     18 clean:
     19 	rm -f  bf
     20 
     21 install:
     22 	install -Dm755  bf $(DESTDIR)$(BINDIR)/
     23 
     24 check:
     25 	$(HARE) test $(HAREFLAGS)
     26 
     27 .PHONY: all check clean install uninstall
     28