forked from miguelvps/c
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 644 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 644 Bytes
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
26
27
28
29
30
include config.mk
SRC = c.c jarowinkler.c options.c util.c
OBJ = $(SRC:.c=.o)
all: c c.1
.c.o:
$(CC) $(CFLAGS) -c $<
c: $(OBJ)
$(CC) $(LDFLAGS) $(LIBS) -o $@ $(OBJ)
c.1: README.pod
pod2man --section=1 --name="C" --center="User Commands" --release="c ${VERSION}" $< > $@
clean:
rm -f c c.1 $(OBJ)
install: all
install -D c $(DESTDIR)$(PREFIX)/bin/c
install -D c.sh $(DESTDIR)/etc/bash_completion.d/c
install -D -m 644 c.1 $(DESTDIR)$(PREFIX)/share/man/man1/c.1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/c
rm -f $(DESTDIR)/etc/bash_completion.d/c
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/c.1
.PHONY: all clean install uninstall