so://phie

ductape

Static template generator for C
git clone git://soophie.de/ductape

blob: a61c555aee036f2c57ae61505db7a89403be49ac (378 bytes)[doc][blame][raw]

1CC=cc

2CFLAGS=-Wall -Wextra -Werror -pedantic

3CCHECK=-I. -x c - -fsyntax-only

4TARGET=ductape

5

6build: src/main.c

7 $(CC) -o $(TARGET) $(CFLAGS) $(LIBS) $^

8

9install: build

10 cp $(TARGET) /usr/local/bin/

11 cp src/ductape.h /usr/local/include/

12 rm ./$(TARGET)

13

14clean:

15 rm ./$(TARGET)

16

17check: src/ductape.h

18 @printf '#define DUCTAPE_IMPL\n#include "%s"' "$^" | $(CC) $(CFLAGS) $(CCHECK)