summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/stand/device-streams/Makefile.bsd-wrapper
blob: 17c5ecd6809155028e08e097b1320a9766ddcfe0 (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
# $OpenBSD: Makefile.bsd-wrapper,v 1.3 2000/02/13 13:15:23 espie Exp $

.if ${MACHINE} == "amiga"
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}
.else
NOPROG=Yes
NOMAN=Yes
.endif

.include <bsd.prog.mk>