summary refs log blame commit diff stats
path: root/Makefile
blob: b56b19b0f3a45f7106dd457994e873812565e90f (plain) (tree)
























                                                 
CC = cc
CFLAGS = -static -O2 -Wall -Wextra
LIBS = -lgemtext
OUT = gmitohtml

PREFIX = /usr

OBJS = gmitohtml.o
MANPAGES = gmitohtml.1

all: $(OUT)

$(OUT): $(OBJS)
	$(CC) $(CFLAGS) -o $(OUT) $(OBJS) $(LIBS)

install: all
	mkdir -p $(PREFIX)/bin
	cp -f $(OUT) $(PREFIX)/bin
	mkdir -p $(PREFIX)/share/man/man1
	cp $(MANPAGES) $(PREFIX)/share/man/man1

clean:
	rm -f $(OUT) $(OBJS)

.PHONY: all clean