-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (27 loc) · 778 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
CFLAGS = -Wall -W -Wno-unused -std=c99 $(shell pkg-config --cflags fuse libparted)
LDFLAGS = $(shell pkg-config --libs fuse libparted)
PREFIX ?= /usr/local
.PHONY: all
all: fldev fldev.1 README.html
fldev: fldev.o
$(CC) $^ $(LDFLAGS) -o $@
fldev.1: README.txt
a2x -f manpage README.txt
rm -f README.xml
README.html: README.txt
a2x -f xhtml -d manpage README.txt
rm -f README.xml
dist: distclean
test: fldev
./tests.sh
clean distclean:
rm -f fldev fldev.o *~ README.xml
maintainer-clean: clean
rm -f fldev.1 README.html README.xml
install: fldev fldev.1
install -s -m 0755 fldev $(PREFIX)/bin/fldev
install -d $(PREFIX)/man/man1
install -m 0644 fldev.1 $(PREFIX)/man/man1/fldev.1
uninstall:
rm -f $(PREFIX)/bin/fldev
rm -f $(PREFIX)/man/man1/fldev.1