File: Makefile.am

package info (click to toggle)
davfs2 1.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,472 kB
  • sloc: ansic: 8,417; sh: 4,877; makefile: 144; sed: 16
file content (40 lines) | stat: -rw-r--r-- 1,636 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Makefile for etc directory in davfs.
## Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann
##
## This file is part of davfs2.
##
## davfs2 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 3 of the License, or
## (at your option) any later version.
##
## davfs2 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 davfs2; if not, write to the Free Software Foundation,
## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */

## Process this file with automake to produce Makefile.in

dist_pkgdata_DATA = davfs2.conf secrets
pkgsysconfdir = $(sysconfdir)/@PACKAGE@

install-data-local: $(dist_pkgdata_DATA)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir)
	$(INSTALL_DATA) -b $(srcdir)/davfs2.conf $(DESTDIR)$(pkgsysconfdir)/davfs2.conf
	$(INSTALL_DATA) -b -m 600 $(srcdir)/secrets $(DESTDIR)$(pkgsysconfdir)/secrets
	$(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir)/certs
	$(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir)/certs/private
	chmod 700 $(DESTDIR)$(pkgsysconfdir)/certs/private

uninstall-local:
	@$(NORMAL_UNINSTALL)
	@list='$(dist_pkgdata_DATA)'; for p in $$list; do \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " rm -f $(DESTDIR)$(pkgsysconfdir)/$$f"; \
	  rm -f $(DESTDIR)$(pkgsysconfdir)/$$f; \
	done