summaryrefslogtreecommitdiff
path: root/app/ssh-askpass/Imakefile
blob: aa3a481f0b2df0800fe2902a23d13c905591cb65 (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.2 2007/01/09 21:49:12 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) $(DEPXINERAMALIB)
LOCAL_LIBRARIES = $(XTOOLLIB) $(XLIB) $(XINERAMALIB)

           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))