
########################################################
# You shouldn't need to change anything in this file

include configure

help:
	@echo "Pick one of the following targets:"
	@echo "    make bin-install      - install from binary distribution"
	@echo "    make all              - make from sources (if you have them)"
	@echo "    make install          - make and install from sources (if you have them)"
	@echo "    make clean            - clean sources (if you have them)"

bin-install: man
	$(MKDIRHIER) $(BINDIR)
	$(INSTALL) -m 755 bin/$(OCCHECK) $(BINDIR)
	$(INSTALL) -m 755 bin/$(TL2STRL) $(BINDIR)

man:
	$(MKDIRHIER) $(MANDIR)
	$(INSTALL) -m 644 man/$(OCCHECK).1 $(MANDIR)
	$(INSTALL) -m 644 man/$(TL2STRL).1 $(MANDIR)

all:
	cd src && $(MAKE) all "ARCH=`../bin/arch-n-opsys`"

install: all
	cd src && $(MAKE) install "ARCH=`../bin/arch-n-opsys`"

clean:
	cd src && $(MAKE) clean "ARCH=`../bin/arch-n-opsys`"
