rerefactor Makefile.am
authorDavid Schleef <ds@schleef.org>
Sat, 16 Aug 2003 22:18:05 +0000 (22:18 +0000)
committerDavid Schleef <ds@schleef.org>
Sat, 16 Aug 2003 22:18:05 +0000 (22:18 +0000)
doc/Makefile.am

index 368074fbf8e3ebc781228a6f572b4b35224c5371..2eeeb79aeb0ee3926e32cf05818247a8423f453e 100644 (file)
@@ -10,35 +10,21 @@ BUILT_SOURCES = funcref.sgml drivers.sgml
 EXTRA_DIST=$(SGML) comedilib.sgml funcref mkref drivers.txt mkdr
 
 if HAVE_DOCBOOK2PDF
-all_pdf = comedilib.pdf
-install_pdf = install_pdf
+pkgdata_DATA = comedilib.pdf
 else
-all_pdf = 
-install_pdf = 
+pkgdata_DATA = 
 endif
 
-all-local: $(all_pdf)
-
-install-data-local: $(install_pdf)
-
-install_pdf:
-       $(INSTALL) -d $(pkgdatadir)
-       $(INSTALL_DATA) comedilib.pdf $(pkgdatadir)
-
-uninstall-local:
-       rm -f $(pkgdatadir)/comedilib.pdf
-
-clean-local:
-       rm -f comedilib.pdf drivers.sgml funcref.sgml
+CLEANFILES = comedilib.pdf
 
 comedilib.pdf: $(srcdir)/comedilib.sgml $(SGML)
-       $(DOCBOOK2PDF) -f docbook -b pdf $(srcdir)/comedilib.sgml
+       $(DOCBOOK2PDF) $(srcdir)/comedilib.sgml
 
 funcref.sgml: funcref mkref
-       ./mkref funcref >funcref.sgml
+       $(srcdir)/mkref funcref >funcref.sgml
 
 drivers.sgml: drivers.txt mkdr
-       ./mkdr drivers.txt >drivers.sgml
+       $(srcdir)/mkdr drivers.txt >drivers.sgml
 
 locales = de