"Fossies" - the Fresh Open Source Software Archive

Member "dconf-0.5.1/Makefile" (30 Jul 2006, 1774 Bytes) of package /linux/privat/old/dconf-0.5.1.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 name = dconf
    2 version = $(shell awk '/^Version: / {print $$2}' $(name).spec)
    3 
    4 prefix = /usr
    5 sysconfdir = /etc
    6 bindir = $(prefix)/bin
    7 sbindir = $(prefix)/sbin
    8 libdir = $(prefix)/lib
    9 datadir = $(prefix)/share
   10 mandir = $(datadir)/man
   11 localstatedir = /var
   12 
   13 logdir = $(localstatedir)/log/dconf
   14 
   15 
   16 all:
   17 	@echo "Nothing to be build."
   18 
   19 install: dconf.1
   20 #	-[ ! -f $(DESTDIR)$(sysconfdir)/dconf.conf ] && install -D -m0644 dconf.conf $(DESTDIR)$(sysconfdir)/dconf.conf
   21 	-@[ ! -f $(DESTDIR)$(sysconfdir)/dconf-custom.conf ] && install -D -m0644 config/dconf-custom.conf $(DESTDIR)$(sysconfdir)/dconf-custom.conf
   22 
   23 	install -Dp -m0755 dconf $(DESTDIR)$(bindir)/dconf
   24 	install -Dp -m0644 dconf.1 $(DESTDIR)$(mandir)/man1/dconf.1
   25 
   26 	install -dp -m0755 $(DESTDIR)$(logdir)
   27 	@echo "Also do: make install-<dist>   (with dist: debian|redhat|suse)"
   28 
   29 install-redhat:
   30 	install -Dp -m0644 config/dconf-redhat.conf $(DESTDIR)$(sysconfdir)/dconf.conf
   31 
   32 install-debian:
   33 	install -Dp -m0644 config/dconf-debian.conf $(DESTDIR)$(sysconfdir)/dconf.conf
   34 
   35 install-suse:
   36 	install -Dp -m0644 config/dconf-suse.conf $(DESTDIR)$(sysconfdir)/dconf.conf
   37 
   38 clean:
   39 	rm -f dconf.1 dconf.1.html dconf.1.xml
   40 
   41 %.html: %.txt
   42 	asciidoc -b xhtml11 -d manpage $<
   43 
   44 %.1: %.1.xml
   45 	xmlto man $<
   46 
   47 %.xml: %.txt
   48 	asciidoc -b docbook -d manpage $<
   49 
   50 dist: clean
   51 	find . ! -wholename '*/.svn*' | pax -d -w -x ustar -s ,^,$(name)-$(version)/, | bzip2 >../$(name)-$(version).tar.bz2
   52 
   53 rpm: dist
   54 	rpmbuild -tb --clean --rmsource --rmspec --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" --define "_rpmdir ../" ../$(name)-$(version).tar.bz2
   55 
   56 srpm: dist
   57 	rpmbuild -ts --clean --rmsource --rmspec --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" --define "_srcrpmdir../" ../$(name)-$(version).tar.bz2