blob: 8c9ab1933d036382d38dc329994c449acf26ad24 (
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
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.1 1999/09/27 08:39:08 espie Exp $
BINPROG= devtostream rdbinfo streamtodev xdevtostream xstreamtodev
BINLIB=getopt.lib unixemul.lib
BINARIES=${BINPROG} ${BINLIB}
OTHER=COPYING README devices.c devices.h devtostream.c \
getdevices.c getdevices.h protos.h protos_template.h \
rdbinfo.c streamtodev.c util.c util.h
ARCHIVE=device-streams.tgz
all: ${BINARIES} ${ARCHIVE}
${ARCHIVE}:
tar -s ,^,device-streams/, -zcf ${ARCHIVE} -C ${.CURDIR} ${OTHER} -C ${.OBJDIR} ${BINARIES}
.for I in ${BINARIES}
${I}: ${I}.gz
zcat ${.ALLSRC} >$@
${I}.gz: ${I}.gz.uu
uudecode ${.ALLSRC}
.endfor
CLEANFILES=${BINARIES} ${BINARIES:S/$/.gz/} ${ARCHIVE}
.include <bsd.prog.mk>
|