"Fossies" - the Fresh Open Source Software Archive

Member "checkinstall-1.6.2/Makefile" (12 Nov 2008, 1537 Bytes) of package /linux/privat/old/checkinstall-1.6.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # $Id: Makefile,v 1.6.2.1 2008/11/09 07:48:18 izto Exp $
    2 
    3 # Where to install.
    4 PREFIX=/usr/local
    5 BINDIR=$(PREFIX)/sbin
    6 LCDIR=$(PREFIX)/lib/checkinstall/locale
    7 CONFDIR=$(PREFIX)/lib/checkinstall
    8 
    9 all:
   10 	for file in locale/checkinstall-*.po ; do \
   11 		case $${file} in \
   12 			locale/checkinstall-template.po)  ;; \
   13 			*) \
   14 				out=`echo $$file | sed -s 's/po/mo/'` ; \
   15 				msgfmt -o $${out} $${file} ; \
   16 				if [ $$? != 0 ] ; then \
   17 					exit 1 ; \
   18 				fi ; \
   19 			;; \
   20 		esac ; \
   21 	done	
   22 	$(MAKE) -C installwatch
   23 	
   24 install: all
   25 	export
   26 	$(MAKE) -C installwatch install
   27 	
   28 	mkdir -p $(BINDIR)
   29 	install checkinstall makepak $(BINDIR)
   30 	for file in locale/*.mo ; do \
   31 		LANG=`echo $$file | sed -e 's|locale/checkinstall-||' \
   32 			-e 's|\.mo||'` && \
   33 		mkdir -p $(LCDIR)/$${LANG}/LC_MESSAGES && \
   34 		cp $$file $(LCDIR)/$${LANG}/LC_MESSAGES/checkinstall.mo || \
   35 		exit 1 ; \
   36 	done
   37 	
   38 	mkdir -p $(CONFDIR)
   39 	install -m644  checkinstallrc-dist $(CONFDIR)
   40 	if ! [ -f $(CONFDIR)/checkinstallrc ]; then \
   41 		cp $(CONFDIR)/checkinstallrc-dist $(CONFDIR)/checkinstallrc; \
   42 	else \
   43 		echo; \
   44 		echo; \
   45 		echo ======================================================== ;\
   46 		echo; \
   47 		echo An existing checkinstallrc file has been found. ;\
   48 		echo The one from this distribution can be found at: ; \
   49 		echo; \
   50 		echo -e \\t$(CONFDIR)/checkinstallrc-dist ; \
   51 		echo; \
   52 		echo; \
   53 		echo ======================================================== ;\
   54 		echo; \
   55 	fi
   56 	
   57 clean:
   58 	for file in locale/checkinstall-*.mo ; do \
   59 		rm -f $${file} ; \
   60 	done
   61 	$(MAKE) -C installwatch clean