868163b617
Switch from latex to texlive
76 lines
2.4 KiB
Text
76 lines
2.4 KiB
Text
--- ./Makefile.orig 2005-05-16 14:14:09.000000000 +0300
|
|
+++ ./Makefile 2009-04-21 20:35:11.000000000 +0300
|
|
@@ -7,53 +7,53 @@
|
|
|
|
# Change this for local installation,
|
|
# e. g. /home/user or /usr/local
|
|
-prefix = /usr/local
|
|
+#prefix = /usr/local
|
|
|
|
# Change this for some distributions (current setting
|
|
# is OK for SuSE)
|
|
-docdir = /usr/share/doc/packages
|
|
+docdir = $(DESTDIR)${PREFIX}/share/doc
|
|
|
|
# Change this to $(prefix)/man for older distributions
|
|
# (current setting is correct according to LSB)
|
|
-mandir = $(prefix)/share/man
|
|
+mandir = $(DESTDIR)${PREFIX}/man
|
|
|
|
#
|
|
# Muttprint needs GNU make. If you installed GNU make
|
|
# as `gmake', you have to change this
|
|
-MAKE = make
|
|
+#MAKE = make
|
|
|
|
# Change this three directories only if you're know
|
|
# what you do
|
|
-sharedir = $(prefix)/share
|
|
-libdir = $(prefix)/lib
|
|
-bindir = $(prefix)/bin
|
|
-sysconfdir = /etc
|
|
+sharedir = $(DESTDIR)${PREFIX}/share
|
|
+libdir = $(DESTDIR)${PREFIX}/lib
|
|
+bindir = $(DESTDIR)${PREFIX}/bin
|
|
+sysconfdir = $(DESTDIR)${PREFIX}/etc
|
|
docdirname = muttprint
|
|
|
|
#####################################################
|
|
#####################################################
|
|
|
|
-install = install
|
|
-INSTALLBIN = $(install) -m 0755
|
|
-INSTALL = $(install) -m 0644
|
|
+#install = install
|
|
+#INSTALLBIN = $(install) -m 0755
|
|
+#INSTALL = $(install) -m 0644
|
|
|
|
|
|
all:
|
|
$(MAKE) -C langinfo
|
|
|
|
install:
|
|
- mkdir -p $(docdir)/$(docdirname) $(bindir) $(sharedir)/muttprint/translations \
|
|
- $(mandir)/man1 $(mandir)/de/man1 $(mandir)/es/man1 \
|
|
- $(mandir)/cs/man1 $(mandir)/it/man1
|
|
- $(INSTALLBIN) muttprint $(bindir)/
|
|
- $(INSTALL) CHANGES COPYING INSTALL README* sample-muttprintrc-* \
|
|
+ mkdir -p $(bindir) $(sharedir)/muttprint/translations $(mandir)/man1
|
|
+ ${BSD_INSTALL_SCRIPT} muttprint $(bindir)/
|
|
+ ${BSD_INSTALL_DATA} `find pics -type f -print` $(sharedir)/muttprint/
|
|
+ ${BSD_INSTALL_DATA} `find translations -type f -print` $(sharedir)/muttprint/translations
|
|
+ $(MAKE) -C doc/manpages mandir=$(mandir) install
|
|
+
|
|
+install-with-doc: install
|
|
+ mkdir -p $(docdir)/$(docdirname)
|
|
+ ${BSD_INSTALL_DATA} CHANGES COPYING INSTALL README* sample-muttprintrc-* \
|
|
$(docdir)/$(docdirname)
|
|
- $(INSTALL) `find pics -type f -print` $(sharedir)/muttprint/
|
|
- $(INSTALL) `find translations -type f -print` $(sharedir)/muttprint/translations
|
|
$(MAKE) -C langinfo bindir=$(bindir) install
|
|
$(MAKE) -C doc/manual docdir=$(docdir) docdirname=$(docdirname) install
|
|
- $(MAKE) -C doc/manpages mandir=$(mandir) install
|
|
-
|
|
|
|
uninstall:
|
|
rm $(bindir)/muttprint*
|