-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 656 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
cflags=-Wall -Werror `pkg-config --cflags gtk+-2.0`
ldflags=`pkg-config --libs gtk+-2.0`
DESTDIR=/
PREFIX=/usr/local
all: gtk-led-askpass gtk-led-askpass.1.gz
gtk-led-askpass: gtk-led-askpass.o
$(CC) $(cflags) $(CFLAGS) $(ldflags) $(LDFLAGS) $< -o $@
gtk-led-askpass.o: gtk-led-askpass.c
$(CC) $(cflags) $(CFLAGS) -c $< -o $@
gtk-led-askpass.1.gz: gtk-led-askpass.1
gzip -c9 $< > $@
install: all
install -o 0 -g 0 gtk-led-askpass -D \
$(DESTDIR)/$(PREFIX)/bin/gtk-led-askpass
install -o 0 -g 0 -m 644 gtk-led-askpass.1.gz -D \
$(DESTDIR)/$(PREFIX)/share/man/man1/gtk-led-askpass.1.gz
clean:
rm -f *.o gtk-led-askpass gtk-led-askpass.1.gz