ossp-pkg/as/as-gui/Makefile.in
1.4
##
## OSSP titraq - Graphical user interface for time accounting
## Copyright (c) 2002 Cable & Wireless Deutschland GmbH
## Copyright (c) 2002 The OSSP Project <http://www.ossp.org/>
## Copyright (c) 2002 Ralf S. Engelschall
##
## This file is part of OSSP GUI, a graphical user interface
## for OSSP which can be found at http://www.ossp.org/
##
## 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: Makefile for use with configure
##
@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 titraq_version.c
OBJS = main.o titraq.o titraq_version.o
GRAFX = gfx/ossplogo.xpm
# Qt meta object compiler
MOC_IN = titraq.h
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): Makefile $(OBJS) $(MOC_OBJ) $(GRAFX)
# $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(MOC_OBJ) $(LIBS)
$(PROG_NAME): $(OBJS) $(MOC_OBJ)
$(CXX) $(LDFLAGS) -o $@ $+ $(LIBS)
$(MOC_OBJ): $(MOC_OUT) $(MOC_IN)
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(MOC_OUT)
$(MOC_OUT): $(MOC) $(MOC_IN)
$(MOC) $(MOC_IN) -o $(MOC_OUT)
titraq.1: titraq.pod
VS=`$(SHTOOL) version -lc -dshort titraq_version.c`; \
VL=`$(SHTOOL) version -lc -dlong titraq_version.c`; \
$(POD2MAN) --section=5 --center="Graphical user interface" \
--release="$$VS" --date="$$VL" \
titraq.pod >titraq.1
titraq.conf.5: titraq.conf.pod
VS=`$(SHTOOL) version -lc -dshort titraq_version.c`; \
VL=`$(SHTOOL) version -lc -dlong titraq_version.c`; \
$(POD2MAN) --section=5 --center="Graphical user interface config file" \
--release="$$VS" --date="$$VL" \
titraq.conf.pod >titraq.conf.5
install:
$(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 -m 644 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)$(bindir)/titraq
$(RM) $(DESTDIR)$(mandir)/man1/titraq.1
$(RM) $(DESTDIR)$(mandir)/man5/titraq.conf.5
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
$(CHMOD) 755 titraq_test.sh > /dev/null 2>&1
./titraq_test.sh
.PHONY: install uninstall clean distclean realclean check test