7 # $(PREFIX) is defined in top-level directory, so don't do a
8 # 'make install' within this directory -- do it from above.
10 INSTALLDIR = $(PREFIX)/bin
13 # Programs written in C.
15 CPROGS = unibmp2hex unicoverage unidup unibdf2hex unifontpic \
16 unigencircles unigenwidth unihex2bmp unihexgen unipagecount
19 # Programs written in Perl.
21 # The programs johab2ucs2, unifontchojung, and unifontksx are
22 # only used for generation of Hangul syllables.
24 PPROGS = bdfimplode hex2bdf hex2sfd hexbraille hexdraw hexmerge \
25 johab2ucs2 unifontchojung unifontksx
27 PROGS = $(CPROGS) $(PPROGS)
31 install -m0755 -d $(INSTALLBINDIR)
32 install -s -m0755 $(CPROGS) $(INSTALLBINDIR)
33 install -m0755 $(PPROGS) $(INSTALLBINDIR)
37 if [ x$(PREFIX) = x ] ; \
39 echo "Fatal error: PREFIX directory is not defined." ; \
40 echo "Run 'make install' from top-level directory" ; \
43 install -m0755 -d $(INSTALLDIR)
45 cd $(INSTALLBINDIR) ; \
46 install -s -m0755 $(CPROGS) $(INSTALLDIR)
49 install -m0755 $(PPROGS) $(INSTALLDIR)
52 # The *.exe is for cygwin; it does nothing elsewhere.
53 # The *.dSYM is for Mac OS X.
62 .PHONY: all install clean distclean