#
# c4 - CVS like front end for p4
#
CC = gcc
CFLAGS = -g
OBJS = command.o findroot.o fstat.o ignore.o \
info.o lookup.o main.o mkws.o scan.o
c4: $(OBJS)
$(CC) $(CFLAGS) -o c4 $(OBJS)
clean:
rm -f $(OBJS) c4
VER=1.0
BASE=c4-1.0
# Make release files (binaries must be made seprately).
release:
groff -Tascii -man c4.1 >c4.1q
groff -man c4.1 >c4.ps
distill c4.ps
ln -s . $(BASE)
tar cvf - \
$(BASE)/README \
$(BASE)/*.h \
$(BASE)/*.c \
$(BASE)/Makefile \
$(BASE)/Jamfile \
$(BASE)/c4.1 \
$(BASE)/c4.1q \
$(BASE)/c4.ps \
$(BASE)/c4.pdf \
| gzip -v -best >rel/c4-src-$(VER).tar.gz
tar cvf - \
$(BASE)/c4.1 \
$(BASE)/c4.1q \
$(BASE)/c4.ps \
$(BASE)/c4.pdf \
| gzip -v -best >rel/c4-doc-$(VER).tar.gz
rm $(BASE)
$(OBJS): defs.h
main.o: version.h