summaryrefslogtreecommitdiff
path: root/external/public-domain/sqlite/sqlite2mdoc/Makefile
blob: b55de3e5c2e92e8e90c48ee9fcd2f130baf88d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# If you're on Linux, un-comment the following.
#LDADD	 = -lbsd

#####################################################################
# You probably don't want to change anything beneath here.
#####################################################################

CFLAGS	+= -g -W -Wall
PREFIX	 = /usr/local

sqlite2mdoc: main.o
	$(CC) -o $@ main.o $(LDADD)

install:
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	mkdir -p $(DESTDIR)$(PREFIX)/man/man1
	install -m 0755 sqlite2mdoc $(DESTDIR)$(PREFIX)/bin
	install -m 0444 sqlite2mdoc.1 $(DESTDIR)$(PREFIX)/man/man1

clean:
	rm -f sqlite2mdoc main.o
	rm -rf sqlite2mdoc.dSYM