hautils

[hare] Set of POSIX utilities
Log | Files | Refs | README | LICENSE

Makefile (692B)


      1 .POSIX:
      2 .SUFFIXES:
      3 HARE=hare
      4 HAREFLAGS=
      5 
      6 utils=\
      7 	basename \
      8 	cat \
      9 	dirname \
     10 	env \
     11 	false \
     12 	head \
     13 	ls \
     14 	nl \
     15 	pwd \
     16 	rm \
     17 	sleep \
     18 	tee \
     19 	true \
     20 	uname \
     21 	uniq \
     22 	wc
     23 
     24 all: $(utils)
     25 
     26 clean:
     27 	rm -f $(utils)
     28 
     29 .PHONY: all clean
     30 
     31 .SUFFIXES: .ha
     32 .ha:
     33 	$(HARE) build $(HAREFLAGS) -o $@ $<
     34 
     35 basename: basename.ha main/main.ha
     36 cat: cat.ha main/main.ha
     37 dirname: dirname.ha main/main.ha
     38 env: env.ha main/main.ha
     39 false: false.ha
     40 head: head.ha main/main.ha
     41 ls: ls.ha main/main.ha
     42 nl: nl.ha main/main.ha
     43 pwd: pwd.ha main/main.ha
     44 rm: rm.ha main/main.ha
     45 sleep: sleep.ha main/main.ha
     46 tee: tee.ha main/main.ha
     47 true: true.ha
     48 uname: uname.ha main/main.ha
     49 uniq: uniq.ha main/main.ha
     50 wc: wc.ha main/main.ha