Static template generator for C
git clone git://soophie.de/ductape
blob: a61c555aee036f2c57ae61505db7a89403be49ac (378 bytes)[doc][blame][raw]
1
CC=cc2
CFLAGS=-Wall -Wextra -Werror -pedantic3
CCHECK=-I. -x c - -fsyntax-only4
TARGET=ductape6
build: src/main.c7
$(CC) -o $(TARGET) $(CFLAGS) $(LIBS) $^9
install: build10
cp $(TARGET) /usr/local/bin/11
cp src/ductape.h /usr/local/include/12
rm ./$(TARGET)14
clean:15
rm ./$(TARGET)17
check: src/ductape.h18
@printf '#define DUCTAPE_IMPL\n#include "%s"' "$^" | $(CC) $(CFLAGS) $(CCHECK)