+Tue Apr 4 20:20:49 2006 Ben Pfaff <blp@gnu.org>
+
+ * automake.mk: Fix bugs in installation targets.
+
Mon Apr 3 11:01:16 2006 Ben Pfaff <blp@gnu.org>
* automake.mk: (pkgsysconf_DATA) Add AFM files in config/psfonts.
## Process this file with automake to produce Makefile.in -*- makefile -*-
-pkgsysconf_DATA = \
+dist_pkgsysconf_DATA = \
config/devices \
- config/papersize \
+ config/papersize
+
+psfontsdir = $(pkgsysconfdir)/psfonts
+dist_psfonts_DATA = \
config/psfonts/Helvetica-Bold.afm \
config/psfonts/Times-Bold.afm \
config/psfonts/Courier-Bold.afm \
config/psfonts/Times-Roman.afm \
config/psfonts/Courier.afm
-EXTRA_DIST += $(pkgsysconf_DATA)
-
# A `private installation' in my terms is just having the appropriate
# configuration files in ~/.pspp instead of a global configuration
# location. So I let those files be installed automatically.
private-install:
- $(mkinstalldirs) $$HOME/.pspp $$HOME/.pspp/psfonts
- cd $(top_srcdir); cp $(pkgsysconf_DATA) $$HOME/.pspp
+ $(mkinstalldirs) $$HOME/.pspp
+ cd $(top_srcdir) && cp $(dist_pkgsysconf_DATA) $$HOME/.pspp
+ $(mkinstalldirs) $$HOME/.pspp/psfonts
+ cd $(top_srcdir) && cp $(dist_psfonts_DATA) $$HOME/.pspp/psfonts
+
private-uninstall:
- -cd $$HOME/.pspp && rm $(notdir $(pkgsysconf_DATA))
+ -cd $$HOME/.pspp && rm $(notdir $(dist_pkgsysconf_DATA))
+ -cd $$HOME/.pspp/psfonts && rm $(notdir $(dist_psfonts_DATA))
-rmdir $$HOME/.pspp/psfonts $$HOME/.pspp