INSTALLDIR=/usr/local/lib/topaz

###############################################
# do not change following lines
all:
	cd ./topaz; make -f Makefile.win; cd ../win32; make -f Makefile.win; cd ..
.PHONY: clean
clean:
	cd ./topaz; make -f Makefile.win clean; cd ../win32; make -f Makefile.win clean; cd ..
.PHONY: install
install:
#checking $(INSTALLDIR)
	@if  test ! -d $(INSTALLDIR) \
        ; then  \
			echo "install directory does not exist!!"; \
			exit 1  \
        ; fi
	strip ./topaz/topaz.exe
	strip ./topaz/tpv2ps.exe
	strip ./win32/wtpvview.exe
	strip ./win32/tpv2clip.exe
	strip ./win32/tpv2prn.exe
	cp ./topaz.sh $(INSTALLDIR)
	cp ./head.win $(INSTALLDIR)/head.ps
	cp ./HISTORY $(INSTALLDIR)
	cp ./LICENSE $(INSTALLDIR)
	cp ./INSTALL.sjis $(INSTALLDIR)/INSTALL
	cp ./README.sjis $(INSTALLDIR)/README
	cp ./README.win $(INSTALLDIR)
	cp ./topaz/topaz.exe $(INSTALLDIR)
	cp ./topaz/tpv2ps.exe $(INSTALLDIR)
	cp ./win32/wtpvview.exe $(INSTALLDIR)
	cp ./win32/tpv2clip.exe $(INSTALLDIR)
	cp ./win32/tpv2prn.exe $(INSTALLDIR)
	chmod 755 $(INSTALLDIR)/topaz.sh
	chmod 755 $(INSTALLDIR)/topaz.exe
	chmod 755 $(INSTALLDIR)/wtpvview.exe
	chmod 755 $(INSTALLDIR)/tpv2ps.exe
	chmod 755 $(INSTALLDIR)/tpv2clip.exe
	chmod 755 $(INSTALLDIR)/tpv2prn.exe
#checking $(INSTALLDIR)/_topaz
	@if  test ! -d $(INSTALLDIR)/_topaz \
        ; then  \
           mkdir $(INSTALLDIR)/_topaz \
        ; fi
	cp ./win32/_topaz/* $(INSTALLDIR)/_topaz
	cp ./cuirc.win $(INSTALLDIR)/_topaz/cui.rc
#checking $(INSTALLDIR)/sample
	@if  test ! -d $(INSTALLDIR)/sample \
        ; then  \
           mkdir $(INSTALLDIR)/sample \
        ; fi
	cp ./sample/* $(INSTALLDIR)/sample


syntax highlighted by Code2HTML, v. 0.9.1