1 # Included by all GNUmakefile's to get the same defaults -*- Makefile -*-
3 # Copyright (C) 2014 Inria (Sylvain Beucler)
5 # This file is part of FusionForge. FusionForge is free software;
6 # you can redistribute it and/or modify it under the terms of the
7 # GNU General Public License as published by the Free Software
8 # Foundation; either version 2 of the Licence, or (at your option)
11 # FusionForge is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with FusionForge; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 # Using Automake conventions and best practices
24 pkgdatadir=$(prefix)/share/fusionforge
25 localedir=$(prefix)/share/locale
27 # Common distro usage will be:
28 # make DESTDIR=/tmp/build prefix=/usr
30 # Let's slightly divert from Automake convention and use distro dirs:
31 #sysconfdir=$(prefix)/etc
32 #localstatedir=$(prefix)/var
37 config_path=$(sysconfdir)/fusionforge
38 data_path=$(localstatedir)/lib/fusionforge
39 log_path=$(localstatedir)/log/fusionforge
43 CP_R=cp -r --preserve=timestamps
45 # Hard-coded detection of distro-specific Apache configuration
46 apache_user=$(shell if [ -e /etc/redhat-release ]; then echo 'apache'; elif [ -e /etc/SuSE-release ]; then echo 'wwwrun'; else echo 'www-data'; fi)
47 apache_group=$(shell if [ -e /etc/redhat-release ]; then echo 'apache'; elif [ -e /etc/SuSE-release ]; then echo 'www'; else echo 'www-data'; fi)
48 apache_service=$(shell if [ -e /etc/redhat-release ]; then echo 'httpd'; else echo 'apache2'; fi)
49 ssh_service=$(shell if [ -e /etc/redhat-release ]; then echo 'sshd'; elif [ -e /etc/SuSE-release ]; then echo 'sshd'; else echo 'ssh'; fi)