summary refs log tree commit diff stats
path: root/Makefile
blob: b56b19b0f3a45f7106dd457994e873812565e90f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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