aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9af0eba15cfadae2f1eecb129908968a9d83c8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS = -I/usr/X11R7/include -I/usr/pkg/include
LDFLAGS = -lXm -L/usr/X11R7/lib -L/usr/pkg/lib
LDFLAGS += -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib

xbattext: xbattext.c

install: xbattext
	install xbattext /usr/local/bin
	install -m 644 xbattext.1 /usr/local/man/man1

upload: xbattext.c
	scp -p xbattext.c root@ankarstrom.se:/var/www/img/htdocs/xbattext.c
	scp -p xbattext.pdf root@ankarstrom.se:/var/www/img/htdocs/xbattext.pdf

xbattext.pdf: xbattext.ms
	~/prj/ref/ref xbattext.ms | groff -Tps -dpaper=letter -ms \
		| ps2pdf - > xbattext.pdf