nix_usinflation

United States of America Dollar inflation calculator
git clone https://0xdd.org/code/nix_usinflation.git
Log | Files | Refs | README | LICENSE

Makefile (331B)


      1 # 2018 David DiPaola
      2 # licensed under CC0 (public domain, see https://creativecommons.org/publicdomain/zero/1.0/)
      3 
      4 BIN = usinflation
      5 
      6 .PHONY: all
      7 all: $(BIN)
      8 
      9 data.h: data.txt
     10 	python3 data_process.py > data.h
     11 
     12 main.c: data.h
     13 
     14 $(BIN): main.c
     15 	$(CC) -Wall -Wextra -O2 $(CFLAGS) $< -o $@
     16 
     17 .PHONY: clean
     18 clean:
     19 	rm -rf $(BIN) data.h
     20