align baselibs.conf as done on openSUSE
[platform/upstream/acl.git] / debian / Makefile
1 #
2 # Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 #
18
19 TOPDIR = ..
20 include $(TOPDIR)/include/builddefs
21
22 LIBPKG = lib$(PKG_NAME)1
23 LSRCFILES = changelog compat control copyright rules watch
24 DEV_DOC_DIR = $(PKG_DOC_DIR)/../$(LIBPKG)-dev
25 LIB_DOC_DIR = $(PKG_DOC_DIR)/../$(LIBPKG)
26
27 default:
28
29 include $(BUILDRULES)
30
31 install: default
32 ifeq ($(PKG_DISTRIBUTION), debian)
33         $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
34         $(INSTALL) -m 644 changelog $(PKG_DOC_DIR)/changelog.Debian
35 endif
36
37 install-dev: default
38 ifeq ($(PKG_DISTRIBUTION), debian)
39         $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
40         $(INSTALL) -m 755 -d $(DEV_DOC_DIR)
41         $(INSTALL) -m 644 copyright $(DEV_DOC_DIR)
42         $(INSTALL) -m 644 changelog $(DEV_DOC_DIR)/changelog.Debian
43 endif
44
45 install-lib: default
46 ifeq ($(PKG_DISTRIBUTION), debian)
47         $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
48         $(INSTALL) -m 755 -d $(LIB_DOC_DIR)
49         $(INSTALL) -m 644 copyright $(LIB_DOC_DIR)
50         $(INSTALL) -m 644 changelog $(LIB_DOC_DIR)/changelog.Debian
51 endif