summaryrefslogtreecommitdiff
path: root/distrib/notes/Makefile
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-27 11:26:07 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-27 11:26:07 +0000
commitabb30277ff0bbd258cfb54ec36f9ad039a7d2b9c (patch)
treec2f4dae1f0663c60f6ad4a231e120d8092c2a414 /distrib/notes/Makefile
parentaef8d05902faf8bb5b00faf643b2fee1306e557e (diff)
Bring over distrib from XF4
Diffstat (limited to 'distrib/notes/Makefile')
-rw-r--r--distrib/notes/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/distrib/notes/Makefile b/distrib/notes/Makefile
new file mode 100644
index 000000000..58cc1b195
--- /dev/null
+++ b/distrib/notes/Makefile
@@ -0,0 +1,27 @@
+# $OpenBSD: Makefile,v 1.1 2006/11/27 11:25:45 matthieu Exp $
+
+FILE= README.${MACHINE}
+
+sets=xbase xfont xshare xserv
+
+all: ${FILE}.generated
+
+${FILE}.generated: ${FILE} m4.common
+ m4 m4.common ${FILE} > ${FILE}.generated
+
+install: ${FILE}.generated
+ ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 444 ${FILE}.generated \
+ ${DESTDIR}/usr/X11R6/README
+.for set in ${sets}
+ if [ -d ${DESTDIR}/var/db/pkg/${set}-${OSREV} ]; then \
+ ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 444 \
+ DESCR.${set} \
+ ${DESTDIR}/var/db/pkg/${set}-${OSREV}/+DESCR; \
+ ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 755 \
+ DEINSTALL \
+ ${DESTDIR}/var/db/pkg/${set}-${OSREV}/+DEINSTALL; \
+ fi
+.endfor
+
+clean:
+ rm -f *.generated