home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
support
/
makefile
< prev
next >
Wrap
Makefile
|
1994-04-06
|
2KB
|
60 lines
# This Makefile helps build and manage the BBS support utilities
# and other files.
CC = gcc
CFLAGS =
SOURCEFILES = symlinks.c
DISTFILES = $(SOURCEFILES) Makefile
all : symlinks P-V.list Archives view1.lha
# This target builds "Archives", which is an accumulated summary of all
# of the archives on this CD for which a product info file is supplied.
Archives :
pitool -b -f - >Archives /FrozenFish-Apr94
# This target builds "P-V.list", which is a file containing one line for
# every archive on this CD, where each line consists of the full pathname
# to the archive, followed by the version number of that material in that
# archive (if known). It can be fed to "symlinks" to build symbolic links
# to each archive on the CD.
P-V.list :
pitool -b -f - -F "%P %V\n" >P-V.list /FrozenFish-Apr94
symlinks : symlinks.o
$(CC) -o symlinks symlinks.o
symlinks.o : symlinks.c
$(CC) -c $(CFLAGS) symlinks.c
# Build the lha archive for the alpha view.
VIEW1_FILES = view1.script pitool symlinks P-V.list view1desc.lha \
view1.links
view1.lha : $(VIEW1_FILES)
rm -f view1.lha
lha -mraxe a view1.lha $(VIEW1_FILES)
view1.links : P-V.list symlinks
symlinks -V1 -s <P-V.list >view1.links
# Build the archive of description files. This is intended to be
# run in a scratch area, so you have to explicitly make it.
#
# (Note: There are currently problems with this, so it is commented
# out. One problem is that lha crashes the system when asked to to
# look for #?/files.bbs. Use this as an example only.)
#
#view1desc.lha :
# rm -rf links
# mkdir links
# (cd links ; ../symlinks -V1 <../P-V.list)
# (cd links ; ../pitool -b .)
# (cd links ; lha -mraxe a view1desc.lha #?/files.bbs)
# mv links/view1desc.lha view1desc.lha
# rm -rf links