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 hexkinya hexmerge \
29 johab2ucs2 unifontchojung unifontksx unihex2png unihexfill \
30 unipng2hex unifont-viewer
32 PROGS = $(CPROGS) $(PPROGS)
41 bin-stamp: $(CPROGS) $(PPROGS) $(PNGPROGS)
42 install -m0755 -d $(LOCALBINDIR)
43 # install -m0755 $? $(LOCALBINDIR)
44 install -s -m0755 $(CPROGS) $(LOCALBINDIR)
45 install -m0755 $(PPROGS) $(LOCALBINDIR)
50 if [ x$(PREFIX) = x ] ; \
52 echo "Fatal error: PREFIX directory is not defined." && \
53 echo "Run 'make install' from top-level directory" && \
56 install -m0755 -d $(INSTALLDIR)
58 cd $(LOCALBINDIR) && \
59 install -s -m0755 $(CPROGS) $(INSTALLDIR)
62 install -m0755 $(PPROGS) $(INSTALLDIR)
65 # The *.exe is for cygwin; it does nothing elsewhere.
66 # The *.dSYM is for Mac OS X.
77 .PHONY: all bin install clean distclean