bad edd, 2 warnings!
[xxxterm.git] / Makefile
blob00f35ebae1c8d40cb57b8f8a148cc6eaf65aae0d
1 # $xxxterm$
3 PREFIX?=/usr/local
4 BINDIR=${PREFIX}/bin
6 PROG=xxxterm
7 MAN=xxxterm.1
9 SRCS= xxxterm.c marco.c
10 COPT+= -O2
11 DEBUG= -ggdb3
12 LDADD= -lutil
13 LIBS+= gtk+-2.0
14 LIBS+= webkit-1.0
15 LIBS+= libsoup-2.4
16 LIBS+= gnutls
17 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
18 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
19 CFLAGS+= $(GTK_CFLAGS) -Wall -pthread
20 LDFLAGS+= $(GTK_LDFLAGS) -pthread
22 MANDIR= ${PREFIX}/man/cat
24 CLEANFILES += ${.CURDIR}/javascript.h
26 ${.CURDIR}/javascript.h: hinting.js input-focus.js
27 perl ${.CURDIR}/js-merge-helper.pl ${.CURDIR}/hinting.js \
28 ${.CURDIR}/input-focus.js > ${.CURDIR}/javascript.h
30 beforeinstall:
31 mkdir -p ${PREFIX}/share/xxxterm
32 cp ${.CURDIR}/xxxtermicon16.png ${PREFIX}/share/xxxterm
33 cp ${.CURDIR}/xxxtermicon32.png ${PREFIX}/share/xxxterm
34 cp ${.CURDIR}/xxxtermicon48.png ${PREFIX}/share/xxxterm
35 cp ${.CURDIR}/xxxtermicon64.png ${PREFIX}/share/xxxterm
36 cp ${.CURDIR}/xxxtermicon128.png ${PREFIX}/share/xxxterm
37 cp ${.CURDIR}/style.css ${PREFIX}/share/xxxterm
39 ${PROG} ${OBJS} beforedepend: ${.CURDIR}/javascript.h
41 release: xxxterm xxxterm.cat1
42 @sh ${.CURDIR}/release.sh ${.CURDIR}
44 .include <bsd.prog.mk>