mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1121 57a11ea4-9604-0410-9ed3-97b8803252fd
153 lines
4.6 KiB
Makefile
153 lines
4.6 KiB
Makefile
# Makefile -- makefile for xacc
|
|
# Copyright (C) 1997 Robin Clark
|
|
# Copyright (C) 1998 Rob Browning <rlb@cs.utexas.edu>
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License as
|
|
# published by the Free Software Foundation; either version 2 of
|
|
# the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
#
|
|
# Author: Robin Clark
|
|
# Internet: rclark@rush.aero.org
|
|
# Address: 609 8th Street
|
|
# Huntington Beach, CA 92648-4632
|
|
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
prefix=@prefix@
|
|
datadir=@datadir@
|
|
VARDIR=@localstatedir@
|
|
CONFIGDIR=@sysconfdir@
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
TARGET = xacc
|
|
DOCDIR = ${datadir}/Docs
|
|
CPU = @target_cpu@
|
|
|
|
LIBS=@LIBS@
|
|
|
|
######################################################################
|
|
# Description of targets:
|
|
#
|
|
# default -- make the application
|
|
# depend -- generate the dependencies
|
|
# clean -- remove *.a, *.o, *.bak, and *~
|
|
# distclean -- get rid of config files too...
|
|
# install -- installs everything
|
|
|
|
default:
|
|
@echo " "
|
|
@echo "Please choose one of the following targets:"
|
|
@echo "motif dynamically linked motif version"
|
|
@echo "motif-static statically linked motif version"
|
|
@echo "gnome gnome/gtk version"
|
|
@echo "qt kde/qt version"
|
|
@echo " "
|
|
|
|
motif:
|
|
@cd lib; $(MAKE) motif
|
|
@cd src; $(MAKE) motif
|
|
|
|
# link in motif libs statically
|
|
motif-static:
|
|
@cd lib; $(MAKE) motif
|
|
@cd src; $(MAKE) motif-static
|
|
|
|
gnome:
|
|
@cd lib; $(MAKE) gnome
|
|
@cd src; $(MAKE) gnome
|
|
|
|
qt:
|
|
@cd lib; $(MAKE) qt
|
|
@cd src; $(MAKE) qt
|
|
|
|
depend:
|
|
@cd lib; $(MAKE) depend
|
|
@cd src; $(MAKE) depend
|
|
|
|
clean:
|
|
rm -f *~ *.o *.bak
|
|
@cd lib; $(MAKE) clean
|
|
@cd src; $(MAKE) clean
|
|
|
|
distclean: clean
|
|
rm -f *~ *.o *.bak Makefile
|
|
rm -f xacc xacc.bin xacc.gtk.bin xacc.qt.bin xacc.static.bin
|
|
rm -f config.cache config.log config.status config.h
|
|
@cd lib; $(MAKE) distclean
|
|
@cd src; $(MAKE) distclean
|
|
|
|
tagsfiles := $(shell find -name "*.[ch]")
|
|
|
|
TAGS: ${tagsfiles}
|
|
etags ${tagsfiles}
|
|
|
|
install: $(TARGET)
|
|
@mkdir -p $(prefix)/bin
|
|
$(INSTALL) $(TARGET) $(prefix)/bin/$(TARGET)
|
|
-$(INSTALL) $(TARGET).bin $(prefix)/bin/$(TARGET).bin
|
|
-$(INSTALL) $(TARGET).gtk.bin $(prefix)/bin/$(TARGET).gtk.bin
|
|
-$(INSTALL) $(TARGET).qt.bin $(prefix)/bin/$(TARGET).qt.bin
|
|
-$(INSTALL) $(TARGET).static.bin $(prefix)/bin/$(TARGET).static.bin
|
|
|
|
# Make sure at least one succeeded
|
|
[ -e ${TARGET}.bin -o -${TARGET}.gtk.bin -o -${TARGET}.qt.bin \
|
|
-o -${TARGET}.static.bin ]
|
|
|
|
# @mkdir -p $(prefix)/toolbar
|
|
# $(INSTALL_DATA) toolbar/*.xpm $(prefix)/toolbar
|
|
@mkdir -p $(DOCDIR)
|
|
$(INSTALL_DATA) Docs/*.html $(DOCDIR)
|
|
$(INSTALL_DATA) Docs/*.gif $(DOCDIR)
|
|
# $(INSTALL_DATA) Docs/*.jpg $(DOCDIR)
|
|
$(INSTALL_DATA) Docs/*.xpm $(DOCDIR)
|
|
@mkdir -p $(DOCDIR)/logos
|
|
$(INSTALL_DATA) Docs/logos/*.* $(DOCDIR)/logos
|
|
|
|
# Config directory
|
|
@mkdir -p ${CONFIGDIR}
|
|
|
|
# Try to do this in a platform independent way...
|
|
# Directories
|
|
for dir in `find etc/ -type d`; do \
|
|
dest=`echo $$dir | cut -c 5-` \
|
|
mkdir -p ${CONFIGDIR}/$$dest; \
|
|
done
|
|
|
|
# Files
|
|
for file in `find etc/ -type f`; do \
|
|
dest=`echo $$file | cut -c 5-` \
|
|
${INSTALL_DATA} $$file ${CONFIGDIR}/$$dest; \
|
|
done
|
|
|
|
# Share directory
|
|
@mkdir -p ${datadir}
|
|
|
|
# Try to do this in a platform independent way...
|
|
# Directories
|
|
for dir in `find share/scm/ -type d`; do \
|
|
dest=`echo $$dir | cut -c 11-` \
|
|
mkdir -p ${datadir}/scm/$$dest; \
|
|
done
|
|
|
|
# Files
|
|
for file in `find share/scm/ -name "*.scm"`; do \
|
|
dest=`echo $$file | cut -c 11-` \
|
|
${INSTALL_DATA} $$file ${datadir}/scm/$$dest; \
|
|
done
|
|
|
|
# Local Variables:
|
|
# tab-width: 2
|
|
# End:
|