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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
# $Id: Makefile,v 1.17 2002/04/14 07:26:20 arensb Exp $
TOP = ..
SUBDIR = doc
# XXX - This ought to include 'libpalm.texi', or whatever it mutates
# into, at some point.
TEXIFILES = conduits.texi
INFOFILES = ${TEXIFILES:.texi=.info}
# EXTRA_INFOFILES is split off from INFOFILES because under DU, when there
# are no existing foo.info-* files, /bin/sh just expands the glob to the
# string "foo.info-*". Then 'make' complains that it doesn't know how to
# build this file.
EXTRA_INFOFILES = ${TEXIFILES:.texi=.info-*}
DVIFILES = ${TEXIFILES:.texi=.dvi}
PSFILES = ${TEXIFILES:.texi=.ps}
PDFFILES = ${TEXIFILES:.texi=.pdf}
MAN3FILES = libpconn.3 \
DlpAddSyncLogEntry.3 \
DlpCallApplication.3 \
DlpCleanUpDataBase.3 \
DlpDeleteRecord.3 \
DlpEndOfSync.3 \
DlpGetSysDateTime.3 \
DlpMoveCategory.3 \
DlpOpenConduit.3 \
DlpOpenDB.3 \
DlpRPC.3 \
DlpReadAppBlock.3 \
DlpReadAppPreference.3 \
DlpReadDBList.3 \
DlpReadFeature.3 \
DlpReadNetSyncInfo.3 \
DlpReadOpenDBInfo.3 \
DlpReadRecordByID.3 \
DlpReadRecordIDList.3 \
DlpReadResourceByIndex.3 \
DlpReadStorageInfo.3 \
DlpReadSysInfo.3 \
DlpReadUserInfo.3 \
DlpResetRecordIndex.3 \
DlpResetSyncFlags.3 \
DlpResetSystem.3 \
DlpWriteRecord.3 \
DlpWriteResource.3 \
PConnClose.3 \
PConn_bind.3 \
RDLP_Backlight.3 \
RDLP_BatteryDialog.3 \
RDLP_GetOSVersionString.3 \
RDLP_MemHandleNew.3 \
RDLP_PluggedIn.3 \
RDLP_ROMToken.3 \
new_PConnection.3 \
time_dlp2palmtime.3 \
libpdb.3 \
new_Record.3 \
new_pdb.3 \
pdb_AppendRecord.3 \
pdb_CopyRecord.3 \
pdb_DeleteRecordByID.3 \
pdb_FindRecordByID.3 \
pdb_LoadHeader.3 \
pdb_Read.3
MAN8FILES = coldsync.8
DISTFILES = Makefile \
${MAN3FILES} ${MAN8FILES} \
${TEXIFILES} \
libpalm.texi \
texinfo.tex \
version.texi.in \
sample.coldsync.rc
EXTRA_DISTFILES = \
${INFOFILES} \
${EXTRA_INFOFILES} \
${PSFILES}
CLEAN = ${INFOFILES} ${EXTRA_INFOFILES} ${DVIFILES} ${PSFILES} \
*.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.ty *.vr \
*.bak *~ errs errs.* \
*.html
DISTCLEAN = version.texi .depend
SPOTLESS =
include ${TOP}/Make.rules
all:: ${INFOFILES}
# There are two parts to installing man pages:
# The first part installs foo.3 as /usr/local/man/man3/foo.3
# Then, the awk script looks for all .Nm lines before the first .Nd line,
# and prints them. This gives us the list of all
# functions/programs/whatever documented in that man page. Drop the first
# one (since that's a real man file), and make symlinks for all of the
# others.
install:: coldsync.8 ${INFOFILES}
-${MKDIR} ${MAN3DIR}
@for i in ${MAN3FILES}; do \
echo "${INSTALL_MAN} $$i ${MAN3DIR}/$$i"; \
${INSTALL_MAN} $$i ${MAN3DIR}/$$i; \
set `awk '/^\.Nm/ { print $$2 } /^\.Nd/ {exit 0}' $$i`; \
echo "Synonyms for $$i are $$*"; \
shift; \
for j in "$$@"; do \
echo "ln -f -s $$i ${MAN3DIR}/$$j.3"; \
ln -f -s "$$i" "${MAN3DIR}/$$j.3"; \
done; \
done
-${MKDIR} ${MAN8DIR}
@for i in ${MAN8FILES}; do \
echo ${INSTALL_MAN} $$i ${MAN8DIR}/$$i; \
${INSTALL_MAN} $$i ${MAN8DIR}/$$i; \
set `awk '/^\.Nm/ { print $$2 } /^\.Nd/ {exit 0}' $$i`; \
echo "Synonyms for $$i are $$*"; \
shift; \
for j in "$$@"; do \
echo "ln -f -s $$i ${MAN8DIR}/$$j.8"; \
ln -f -s "$$i" "${MAN8DIR}/$$j.8"; \
done; \
done
-${MKDIR} ${SYSCONFDIR}
${INSTALL_DATA} sample.coldsync.rc ${SYSCONFDIR}/sample.coldsync.rc
${MKDIR} ${INFODIR}
@for file in ${INFOFILES} ${EXTRA_INFOFILES}; do \
echo "${INSTALL_DATA} $${file} ${INFODIR}/$${file}"; \
${INSTALL_DATA} $${file} ${INFODIR}/$${file}; \
done
dvi: ${DVIFILES}
ps: ${PSFILES}
html: ${HTMLFILES}
pdf: ${PDFFILES}
# This is for Emacs's benefit:
# Local Variables: ***
# fill-column: 75 ***
# End: ***
|