ossp-pkg/as/as-gui/Makefile.in
1.20
##
## OSSP asgui - Accounting system graphical user interface
## Copyright (c) 2002-2003 The OSSP Project (http://www.ossp.org/)
## Copyright (c) 2002-2003 Cable & Wireless Deutschland (http://www.cw.com/de/)
## Copyright (c) 2002-2003 Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 2002-2003 Michael Schloh von Bennewitz <michael@schloh.com>
##
## This file is part of OSSP asgui, an accounting system graphical user
## interface which can be found at http://www.ossp.org/pkg/tool/asgui/.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
## Makefile.in: Autoconf Makefile template
##
@SET_MAKE@
DESTDIR =
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libdir = @libdir@
includedir = @includedir@
mandir = @mandir@
CC = @CC@
CXX = @CXX@
CFLAGS = @CFLAGS@ @DEFS@
CXXFLAGS = @CXXFLAGS@ @DEFS@
CPPFLAGS = @CPPFLAGS@
CXXCPP = @CXXCPP@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
# Qt-specific variables
QTBASE = @QTBASE@
UIC = @UIC@
MOC = @MOC@
RM = rm -f
STRIP = strip
CHMOD = chmod
RMDIR = rmdir
SHTOOL = ./shtool
POD2MAN = pod2man
TRUE = true
PROG_NAME = titraq
TARGET_PROGS = titraq
TARGET_MANS = titraq.1 titraq.conf.5
SRCS = main.cpp titraq.cpp titassist.cpp titslot.cpp tidatops.cpp titrex.cpp generic.cpp titamount.cpp titable.cpp titprefs.cpp titraq_version.cpp
OBJS = main.o titraq.o titassist.o titslot.o tidatops.o titrex.o generic.o titamount.o titable.o titprefs.o titraq_version.o
GRAFX = gfx/ossplogo.xpm
# Qt meta object compiler (MOC) generated
MOC_OUT = moc_titraq.cpp
MOC_OBJ = moc_titraq.o
.SUFFIXES:
.SUFFIXES: .c .cc .cpp .cxx .o
.c.o:
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
.cc.o:
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
.cpp.o:
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
.cxx.o:
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $<
all: Makefile $(TARGET_PROGS) $(TARGET_MANS)
$(PROG_NAME): $(OBJS) $(MOC_OBJ)
$(CXX) $(LDFLAGS) -o $@ $+ $(LIBS)
moc_%.cpp: %.h
$(MOC) $< -o $@
titraq.1: titraq.pod
VS=`$(SHTOOL) version -lc -dshort titraq_version.cpp`; \
VL=`$(SHTOOL) version -lc -dlong titraq_version.cpp`; \
D=`$(SHTOOL) version -lc -dlong titraq_vers.c | sed -e 's;.*(;;' -e 's;).*;;'`; \
$(POD2MAN) --quotes=none \
--section=1 --center="AS Graphical User Interface" \
--release="$$D" --date="OSSP asgui $$VS" titraq.pod | \
sed -e "s;TITRAQ_VERSION_STR;$$VL;" >titraq.1
titraq.conf.5: titraq.conf.pod
VS=`$(SHTOOL) version -lc -dshort titraq_version.cpp`; \
VL=`$(SHTOOL) version -lc -dlong titraq_version.cpp`; \
D=`$(SHTOOL) version -lc -dlong titraq_vers.c | sed -e 's;.*(;;' -e 's;).*;;'`; \
$(POD2MAN) --quotes=none \
--section=5 --center="AS Preferences File" \
--release="$$D" --date="OSSP asgui $$VS" titraq.conf.pod | \
sed -e "s;TITRAQ_VERSION_STR;$$VL;" >titraq.conf.5
install: all
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man5
$(SHTOOL) install -c -s -m 755 titraq $(DESTDIR)$(bindir)/titraq
$(SHTOOL) install -c -m 644 titraq.1 $(DESTDIR)$(mandir)/man1/titraq.1
$(SHTOOL) install -c -m 644 titraq.conf.5 $(DESTDIR)$(mandir)/man5/titraq.conf.5
uninstall:
$(RM) $(DESTDIR)$(mandir)/man5/titraq.conf.5
$(RM) $(DESTDIR)$(mandir)/man1/titraq.1
$(RM) $(DESTDIR)$(bindir)/titraq
$(RMDIR) $(DESTDIR)$(mandir)/man5 >/dev/null 2>&1 || $(TRUE)
$(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE)
$(RMDIR) $(DESTDIR)$(mandir) >/dev/null 2>&1 || $(TRUE)
$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE)
$(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE)
clean:
$(RM) $(TARGET_PROGS) $(OBJS) $(MOC_OBJ)
$(RM) titraq.conf.5 titraq.1
$(RM) titraq_pcre.tab *.core
distclean: clean
$(RM) config.log config.status config.cache # Generated by ./configure
$(RM) Makefile ac_config.h # Generated by ./configure
$(RM) $(MOC_OUT) # Generated by $(MOC)
realclean: distclean
$(RM) configure ac_config.h.in* # Generated by Autoconf
$(RM) configure.lineno # Generated by Autoconf
$(RM) shtool # Generated by Devtool
check: test
test: titraq
./titraq_test.sh
.PHONY: install uninstall clean distclean realclean check test