
help:
	@echo "make options: install"

BIN	=	~/src/bin/rawfix
SRC	= 	src

PANTASKS = \
rawfix.pt \
rawfix.advance.pt \
rawfix.ckchip.pt \
rawfix.fixchip.pt \
rawfix.md5sum.pt \
rawfix.md5chk.pt \
rawfix.burntool.pt

# interfaces with the rawfix database
DB_PROG = \
check.rawfix.sh \
queue.rawfix.sh \
update.rawfix.sh

# these are in order used by the tasks
PERL_PROG = \
advance.rawfix.pl \
check_chip_locations.pl \
get_hosts_fixchip.sh \
fix_chip_locations.pl \
get_hosts_md5s.sh \
get_md5s_instances.pl \
check_md5s_dateobs.pl \
psvideostats.sh \
ipp_apply_burntool_psvideo.pl

# user tools, but not used by the tasks
TOOLS = \
update.bnodes.sh \
check_night_status.pl \
neb_check_location.pl \
update_chip_stats.pl \
finish.fixchip.sh

# not done, or not needed now
MISC = \
triple.fix.pl \
fix_chip_failures.pl \
create.rawfix.sh

PROGRAMS = $(PANTASKS) $(DB_PROG) $(PERL_PROG) $(TOOLS)

install: $(PROGRAMS)

$(PROGRAMS): % : $(BIN)/%

$(BIN)/% : $(SRC)/%
	@if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi
	rm -f $(BIN)/$*
	cp $(SRC)/$* $(BIN)/$*


