# Makefile to compile macput/macget.

# "make" will recompile all of the programs
# "make clean" will remove all executables, *.o, and exess stuff
# "make depend" will rebuild makefiles
# "make install DESTPATH=path" will install the programs in ${DESTPATH}

SHELL =		/bin/sh
GET =		get -s

SRCS =		macget.c macput.c
BINS =		macget macput

all:		$(BINS)

install:
		@if test "${DESTPATH}" = ""; then \
		    echo error: no DESTPATH specified; \
		    exit 1; \
		fi
		for i in ${BINS} ; do \
		    cp $$i ${DESTPATH}/usr/bin/$$i; \
		    chown root ${DESTPATH}/usr/bin/$$i; \
		    chgrp root ${DESTPATH}/usr/bin/$$i; \
		    chmod 755 ${DESTPATH}/usr/bin/$$i; \
		done

clean:
		rm -f ${BINS} *.o
		for i in ${HDRS} ${SRCS}; do \
		    if test -s s.$$i -a ! -s p.$$i; then \
			rm -f $$i; \
		    fi \
		done

depend:

