$FreeBSD$ --- Makefile.orig Thu May 3 08:31:00 2001 +++ Makefile Fri Sep 21 23:15:06 2001 @@ -1,7 +1,5 @@ -PREFIX=/usr/local -LOCALEDIR=/usr/share/locale -CFLAGS=-O2 -Wall `gtk-config --cflags` # -DDISABLE_NLS -CC=gcc +LOCALEDIR=${PREFIX}/share/locale +CFLAGS+=`${GTK_CONFIG} --cflags` # -DDISABLE_NLS CP=/bin/cp RM=/bin/rm -f @@ -9,7 +7,7 @@ OBJS = main.o chemproc.o graph.o draw.o inout.o -SYS_LIBRARIES = `gtk-config --libs` -lm +SYS_LIBRARIES = `${GTK_CONFIG} --libs` -lm all: chemtool cht @@ -25,9 +23,12 @@ # ${CC} ${CFLAGS} ${EXTRA_INCLUDES} -c ${SRCS} install: chemtool src-cht/cht - ${CP} chemtool src-cht/cht ${PREFIX}/bin - ${CP} chemtool.1 ${PREFIX}/man/man1 - for L in `ls locales`; do ${CP} locales/$$L/chemtool.mo ${LOCALEDIR}/$$L/LC_MESSAGES;done + ${BSD_INSTALL_PROGRAM} chemtool src-cht/cht ${PREFIX}/bin + ${BSD_INSTALL_MAN} chemtool.1 ${PREFIX}/man/man1 + for L in `ls locales`; do \ + mkdir -p ${LOCALEDIR}/$$L/LC_MESSAGES; \ + ${BSD_INSTALL_DATA} locales/$$L/chemtool.mo ${LOCALEDIR}/$$L/LC_MESSAGES; \ + done clean: ${RM} *.o *~ src-cht/*.o src-cht/*~ chemtool src-cht/cht