blob: a91cbb487df17205778530108bd73215024b5069 (
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
|
XCOMM $OpenBSD: Imakefile,v 1.1 2006/11/26 10:56:00 matthieu Exp $
SRCS = drawing.c dynlist.c resources.c x11-ssh-askpass.c
OBJS = drawing.o dynlist.o resources.o x11-ssh-askpass.o
DEPLIBS = $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XTOOLLIB) $(XLIB)
NAME = ssh-askpass
CLASS = SshAskpass
VERSION = 1.2.0
DATE = February 14, 2001
APP_DEFAULTS = $(CLASS)-default.ad
$(CLASS)_ad.h: $(CLASS).ad
cat $(CLASS).ad | grep -v '^[ ]*$$' |\
awk '/^[ ]*!/ { sub("^[ ]*![ ]?","", $$0); printf("/* %s */\n", $$0); next } ! /^[ ]*!/ { printf("\"%s\",\n", $$0) }' \
>$@
$(CLASS).ad:
$(LN) $(APP_DEFAULTS) $(CLASS).ad
$(NAME).man: x11-ssh-askpass.man.in Imakefile
sed \@@\
-e 's#@NAME@#$(NAME)#g' \@@\
-e 's#@VERSION@#$(VERSION)#g' \@@\
-e 's#@DATE@#$(DATE)#g' \@@\
<x11-ssh-askpass.man.in >$@.tmp
$(MV) $@.tmp $@
includes:: $(CLASS)_ad.h $(NAME).man
clean::
$(RM) -f $(CLASS)_ad.h $(CLASS).ad
$(RM) -f $(NAME).man
ComplexProgramTarget($(NAME))
InstallAppDefaults($(CLASS))
|