HTML 2.0 compliant static site generator
File Latest Commit
r5 | nishi | 2024-05-05 15:16:20 +0900 (Sun, 05 May 2024) | 1 line
xml parsing
# $Id: Makefile 5 2024-05-05 06:16:20Z nishi $
CC = cc
CFLAGS = -g -std=c99
LDFLAGS =
LIBS = -lexpat
CLOVER_OBJS = clover.o
.PHONY: all clean format replace
all: ./clover
.SUFFIXES: .c .o
./clover: $(CLOVER_OBJS)
$(CC) $(LDFLAGS) -o $@ $(CLOVER_OBJS) $(LIBS)
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f *.o ./clover
FILES = `find . -name "*.c" -or -name "*.h"`
replace:
for i in $(FILES); do \
echo -n "$$i ... "; \
perl replace.pl < $$i > $$i.new; \
mv $$i.new $$i; \
echo "done"; \
done
format:
clang-format -i $(FILES)