xenocara/app/ssh-askpass/Makefile
matthieu 7afaae9fe9 Install resource files in /usr/X11R6/share/X11/app-defaults
/etc/X11/app-defaults stays 1st in the libXt search path so, people
and ports can put customized versions there if needed.
If you didn't customize the versions in /etc/X11/app-defaults, they
should be removed to avoid future issues when one file changes.

discussed at g2k14 and ok ajacoutot@
2014-08-13 21:02:16 +00:00

44 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2014/08/13 21:02:16 matthieu Exp $
.include <bsd.xconf.mk>
PROG= ssh-askpass
SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c
MANDIR= ${X11BASE}/man/man
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 -lxcb -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)${X11BASE}/share/X11/app-defaults/$(CLASS)
beforedepend: $(CLASS)_ad.h
obj: _xenocara_obj
.include <bsd.prog.mk>
.include <bsd.xorg.mk>