2008-03-25 17:41:50 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2008/03/25 23:41:50 matthieu Exp $
|
|
|
|
.include <bsd.xconf.mk>
|
2006-11-29 04:30:05 -07:00
|
|
|
|
2006-11-26 03:53:04 -07:00
|
|
|
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.
|
2007-04-09 04:33:47 -06:00
|
|
|
LDADD+= -L${X11BASE}/lib -lXt -lSM -lICE -lXinerama -lX11 -lXau -lXdmcp -lXext
|
2006-11-26 03:53:04 -07:00
|
|
|
|
|
|
|
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
|
2008-03-19 14:31:09 -06:00
|
|
|
grep -v '^[ ]*$$' $(CLASS).ad |\
|
2006-11-26 03:53:04 -07:00
|
|
|
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
|
|
|
|
|
2008-02-22 04:35:22 -07:00
|
|
|
# XXX why isn't $(CLASS)_ad.h being build before .depend?
|
|
|
|
x11-ssh-askpass.o: $(CLASS)_ad.h
|
|
|
|
|
2006-11-29 04:30:05 -07:00
|
|
|
afterinstall:
|
2007-03-30 11:24:12 -06:00
|
|
|
${INSTALL_DATA} $(CLASS).ad \
|
2006-11-29 04:30:05 -07:00
|
|
|
$(DESTDIR)/etc/X11/app-defaults/$(CLASS)
|
|
|
|
|
2006-11-26 03:53:04 -07:00
|
|
|
beforedepend: $(CLASS)_ad.h
|
|
|
|
|
2006-12-02 09:28:48 -07:00
|
|
|
obj: _xenocara_obj
|
|
|
|
|
2006-11-26 03:53:04 -07:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.include <bsd.xorg.mk>
|