blob: ab6d5139cc4542b2332238782d1a4c3c9d93d65b (
plain)
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
|
# $OpenBSD: Makefile,v 1.10 2008/03/25 23:41:50 matthieu Exp $
.include <bsd.xconf.mk>
PROG= ssh-askpass
SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c
MANDIR= ${X11BASE}/man/cat
CLASS= SshAskpass
VERSION= 1.2.0
DATE= February 14, 2001
APP_DEFAULTS= $(CLASS)-default.ad
CPPFLAGS+= -I${X11BASE}/include -I.
LDADD+= -L${X11BASE}/lib -lXt -lSM -lICE -lXinerama -lX11 -lXau -lXdmcp -lXext
CLEANFILES+= ${CLASS}.ad ${CLASS}_ad.h ssh-askpass.1
ssh-askpass.1: x11-ssh-askpass.man.in
sed -e 's#@NAME@#$(PROG)#g' -e 's#@VERSION@#$(VERSION)#g' \
-e 's#@DATE@#$(DATE)#g' < $(.CURDIR)/x11-ssh-askpass.man.in > $@
$(CLASS)_ad.h: $(CLASS).ad
grep -v '^[ ]*$$' $(CLASS).ad |\
awk '/^[ ]*!/ { sub("^[ ]*![ ]?","", $$0); printf("/* %s */\n", $$0); next } ! /^[ ]*!/ { printf("\"%s\",\n", $$0) }' \
>$@
$(CLASS).ad: $(APP_DEFAULTS)
rm -f $(CLASS).ad
ln -s $(.CURDIR)/$(APP_DEFAULTS) $(CLASS).ad
# XXX why isn't $(CLASS)_ad.h being build before .depend?
x11-ssh-askpass.o: $(CLASS)_ad.h
afterinstall:
${INSTALL_DATA} $(CLASS).ad \
$(DESTDIR)/etc/X11/app-defaults/$(CLASS)
beforedepend: $(CLASS)_ad.h
obj: _xenocara_obj
.include <bsd.prog.mk>
.include <bsd.xorg.mk>
|