8 VPATH = . $(LOCALBINDIR)
11 # $(PREFIX) is defined in top-level directory, so don't do a
12 # 'make install' within this directory -- do it from above.
14 INSTALLDIR = $(PREFIX)/bin
17 # Programs written in C.
19 CPROGS = unibmp2hex unicoverage unidup unibdf2hex unifontpic \
20 unigencircles unigenwidth unihex2bmp unihexgen unipagecount
23 # Programs written in Perl.
25 # The programs johab2ucs2, unifontchojung, and unifontksx are
26 # only used for generation of Hangul syllables.
28 PPROGS = bdfimplode hex2bdf hex2sfd hexbraille hexdraw hexmerge \
29 johab2ucs2 unifontchojung unifontksx unihex2png unipng2hex
31 PROGS = $(CPROGS) $(PPROGS)
40 bin-stamp: $(CPROGS) $(PPROGS)
41 install -m0755 -d $(LOCALBINDIR)
42 install -m0755 $? $(LOCALBINDIR)
45 # install -s -m0755 $(CPROGS) $(LOCALBINDIR)
46 # install -m0755 $(PPROGS) $(LOCALBINDIR)
49 if [ x$(PREFIX) = x ] ; \
51 echo "Fatal error: PREFIX directory is not defined." ; \
52 echo "Run 'make install' from top-level directory" ; \
55 install -m0755 -d $(INSTALLDIR)
58 install -s -m0755 $(CPROGS) $(INSTALLDIR)
61 install -m0755 $(PPROGS) $(INSTALLDIR)
64 # The *.exe is for cygwin; it does nothing elsewhere.
65 # The *.dSYM is for Mac OS X.
76 .PHONY: all bin install clean distclean