chiark / gitweb /
debian/control: Recommend the other build tools we usually need.
[cfd] / Makefile.am
index 14de24f2ddbcc161e26efed175e735fce0876337..506304ae18abe07ac3653eae96c0f268b30ccb0b 100644 (file)
@@ -8,24 +8,26 @@
 ###----- Licensing notice ---------------------------------------------------
 ###
 ### This file is part of the Common Files Distribution (`common')
-### 
+###
 ### `Common' is free software; you can redistribute it and/or modify
 ### it under the terms of the GNU General Public License as published by
 ### the Free Software Foundation; either version 2 of the License, or
 ### (at your option) any later version.
-### 
+###
 ### `Common' is distributed in the hope that it will be useful,
 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ### GNU General Public License for more details.
-### 
+###
 ### You should have received a copy of the GNU General Public License
 ### along with `common'; if not, write to the Free Software Foundation,
 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 bin_SCRIPTS             =
 pkgdata_SCRIPTS                 =
+dist_pkgdata_SCRIPTS    =
 pkgdata_DATA            =
+dist_pkgdata_DATA       =
 
 EXTRA_DIST              =
 CLEANFILES              =
@@ -74,23 +76,33 @@ EXTRA_DIST          += mdw-setup
 ### Files to install.
 
 ## Licences.
-pkgdata_DATA           += COPYING COPYING.LIB
-pkgdata_DATA           += gpl.tex lgpl.tex gpl.texi lgpl.texi
+dist_pkgdata_DATA      += GPL-1 GPL-2 GPL-3
+dist_pkgdata_DATA      += LGPL-2 LGPL-2.1 LGPL-3
+dist_pkgdata_DATA      += AGPL-3
+dist_pkgdata_DATA      += gpl.tex lgpl.tex gpl.texi lgpl.texi
+
+install-data-hook::
+       cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f GPL-2 COPYING
+       cd $(DESTDIR)$(pkgdatadir) && $(LN_S) -f LGPL-2 COPYING.LIB
+
+uninstall-hook::
+       cd $(DESTDIR)$(pkgdatadir) && rm -f COPYING COPYING.LIB
 
 ## Documentation.
-pkgdata_DATA           += INSTALL
-pkgdata_DATA           += texinice.tex
+dist_pkgdata_DATA      += INSTALL
+dist_pkgdata_DATA      += texinice.tex
 
 ## Useful code.
-pkgdata_DATA           += mdwopt.c mdwopt.h
-pkgdata_DATA           += getdate.y getdate.h
+dist_pkgdata_DATA      += mdwopt.c mdwopt.h
+dist_pkgdata_DATA      += getdate.y getdate.h
 
 ## Scripts.
-pkgdata_SCRIPTS                += install-ac
-pkgdata_SCRIPTS                += maninst
+dist_pkgdata_SCRIPTS   += install-ac
+dist_pkgdata_SCRIPTS   += maninst
 
 ## Python support stuff.
-pkgdata_SCRIPTS                += mdwsetup.py
+dist_pkgdata_DATA      += mdwsetup.py
+dist_pkgdata_DATA      += pysetup.mk
 
 ## confsubst
 pkgdata_SCRIPTS                += confsubst
@@ -113,11 +125,8 @@ auto-version: auto-version.in Makefile
        $(AM_V_at)mv $@.new $@
 
 ## Testsuites.
-pkgdata_DATA           += autotest.am
-pkgdata_DATA           += testsuite.at
-
-EXTRA_DIST             += $(pkgdata_DATA)
-EXTRA_DIST             += $(pkgdata_SCRIPTS)
+dist_pkgdata_DATA      += autotest.am
+dist_pkgdata_DATA      += testsuite.at
 
 ## Autoconf snippets.
 EXTRA_DIST             += aclocal.glob
@@ -147,9 +156,14 @@ DISTCHECK_CONFIGURE_FLAGS = \
 dist-hook::
        echo $(VERSION) >$(distdir)/RELEASE
 
+## Ensure that the `COPYING' file is prominent.
+dist-hook::
+       cd $(distdir) && $(LN_S) GPL-2 COPYING
+
 ###--------------------------------------------------------------------------
 ### Debian.
 
+EXTRA_DIST             += debian/compat
 EXTRA_DIST             += debian/control
 EXTRA_DIST             += debian/copyright
 EXTRA_DIST             += debian/rules