1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
# Makefile.in - top-level Makefile template for Linux/Unix
# Copyright (c) 2008 - 2011 Michael Riepe
#
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#@(#) $Id$
srcdir = @srcdir@
top_srcdir = @top_srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
datarootdir = @datarootdir@
mandir = @mandir@
man1dir = $(mandir)/man1
pkgdatadir = $(datarootdir)/dvbcut
installdirs = $(DESTDIR)$(man1dir) \
$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps \
$(DESTDIR)$(datadir)/applications \
$(DESTDIR)$(datadir)/mime/packages
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
all check dep distfiles install mostlyclean clean distclean maintainer-clean::
$(MAKE) -C src $@
$(MAKE) $@-local
all-local:
check-local:
dep-local:
install-local: $(installdirs) dvbcut.1 dvbcut.desktop dvbcut.xml
$(INSTALL_DATA) dvbcut.1 $(DESTDIR)$(man1dir)/dvbcut.1
$(INSTALL_DATA) dvbcut.desktop $(DESTDIR)$(datadir)/applications
$(INSTALL_DATA) dvbcut.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
$(INSTALL_DATA) dvbcut.xml $(DESTDIR)$(datadir)/mime/packages
$(installdirs):
$(SHELL) $(top_srcdir)/mkinstalldirs $@
mostlyclean-local:
clean-local: mostlyclean-local
rm -f config.log
distclean-local: clean-local
rm -f Makefile config.cache config.status
maintainer-clean-local: distclean-local
rm -f configure
distfiles-local: configure
configure: configure.ac
autoconf
VERSION := $(shell cat VERSION)
DISTFILES := $(shell cat DISTFILES)
distdir = dvbcut-$(VERSION)
dist: distfiles ./stamp-dist
./stamp-dist: $(DISTFILES)
rm -rf $(distdir)
mkdir $(distdir)
files="$(DISTFILES)"; for file in $$files; do \
d=`dirname $$file`; \
test -d $(distdir)/$$d || mkdir -p $(distdir)/$$d || exit 1; \
ln $$file $(distdir)/$$file || exit 1; \
done
cd $(distdir) && \
find . -type f ! -name MANIFEST -exec wc -c {} \; | \
sort -k 2 >MANIFEST
-@rm -f $(distdir).tar.gz.bak dvbcut.tar.gz
-@mv -f $(distdir).tar.gz $(distdir).tar.gz.bak
tar cvohfz $(distdir).tar.gz --numeric-owner --owner=0 --group=0 $(distdir)
ln -s $(distdir).tar.gz dvbcut.tar.gz
rm -f stamp-dist && echo timestamp > stamp-dist
CONFIGURE_ARGS = @CONFIGURE_ARGS@
check-dist:
cd $(distdir) && CONFIG_SITE=/no/config.site ./configure $(CONFIGURE_ARGS)
$(MAKE) -C $(distdir)
$(MAKE) -C $(distdir) check
$(MAKE) -C $(distdir) dist
diff $(distdir)/MANIFEST $(distdir)/$(distdir)/MANIFEST
bindist: all
dir=$(distdir)-`arch`; \
rm -rf $$dir; \
make install DESTDIR=`pwd`/$$dir && \
cd $$dir && \
tar cvofz ../$$dir.tar.gz --numeric-owner --owner=0 --group=0 *
|