"Fossies" - the Fresh Open Source Software Archive

Member "fig2ps-1.5/Makefile" (4 Jan 2009, 1287 Bytes) of package /linux/privat/old/fig2ps-1.5.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 # Directories:
    2 PREFIX=/usr/local
    3 BINDIR=$(PREFIX)/bin
    4 MANDIR=$(PREFIX)/share/man/
    5 MAN1DIR=$(MANDIR)/man1
    6 ETCDIR=/etc/fig2ps
    7 HOMEBINDIR=$(HOME)/bin
    8 
    9 # Programs:
   10 MKPATH=mkdir -p
   11 INSTALL=install -m 755 
   12 INSTALLDATA=install -m 644 
   13 LNS=ln -s 
   14 RMF=rm -f
   15 GZIP_FILTER=gzip --best -c 
   16 
   17 
   18 build: check
   19 
   20 check:
   21 	perl -c -w bin/fig2ps
   22 
   23 install: build
   24 # Executable file:
   25 	$(MKPATH) $(DESTDIR)$(BINDIR)
   26 	$(INSTALL) bin/fig2ps $(DESTDIR)$(BINDIR)
   27 
   28 # Configuration file
   29 	$(MKPATH) $(DESTDIR)$(ETCDIR)
   30 	$(INSTALLDATA) fig2ps.rc $(DESTDIR)$(ETCDIR)
   31 
   32 # Manual page
   33 	$(MKPATH) $(DESTDIR)$(MAN1DIR)
   34 	$(GZIP_FILTER) doc/fig2ps.1 > $(DESTDIR)$(MAN1DIR)/fig2ps.1.gz
   35 
   36 # Links:
   37 	$(LNS) fig2ps $(DESTDIR)$(BINDIR)/fig2pdf
   38 	$(LNS) fig2ps $(DESTDIR)$(BINDIR)/fig2eps
   39 	$(LNS) fig2ps.1.gz $(DESTDIR)$(MAN1DIR)/fig2pdf.1.gz
   40 	$(LNS) fig2ps.1.gz $(DESTDIR)$(MAN1DIR)/fig2eps.1.gz
   41 
   42 install-home: build
   43 	$(MKPATH) $(HOMEBINDIR)
   44 	$(INSTALL) bin/fig2ps $(HOMEBINDIR)
   45 
   46 # Do not fail if links exist
   47 	[ -L $(HOMEBINDIR)/fig2pdf ] || $(LNS) fig2ps $(HOMEBINDIR)/fig2pdf
   48 	[ -L $(HOMEBINDIR)/fig2eps ] || $(LNS) fig2ps $(HOMEBINDIR)/fig2eps
   49 	[ -r $(HOME)/.fig2ps.rc ] && \
   50 	echo "Personal configuration file found: not installing a new configuration file" || \
   51 	cp fig2ps.rc $(HOME)/.fig2ps.rc
   52 
   53 clean:
   54 	$(RMF) `find . -name "*~"`
   55