summaryrefslogtreecommitdiffstats
path: root/liveinst/Makefile.am
blob: 0193d473c6c59cad496587bb284653a8ea84248c (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
# liveinst/Makefile.am for anaconda
#
# Copyright (C) 2009  Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This program 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Author: David Cantrell <dcantrell@redhat.com>

SUBDIRS = console.apps pam.d

if IS_LIVEINST_ARCH
dist_sbin_SCRIPTS  = liveinst

desktopdir         = $(datadir)/applications
desktop_DATA       = liveinst.desktop

xinitdir           = /etc/X11/xinit/xinitrc.d
dist_xinit_SCRIPTS = zz-liveinst.sh
endif

EXTRA_DIST = README liveinst.desktop.in

CLEANFILES = liveinst.desktop

MAINTAINERCLEANFILES = Makefile.in

liveinst.desktop: liveinst.desktop.in
	LC_ALL=C intltool-merge -d -u $(top_srcdir)/po liveinst.desktop.in liveinst.desktop

install-exec-local:
	mkdir -p $(DESTDIR)$(bindir)
	ln -s consolehelper $(DESTDIR)$(bindir)/liveinst

uninstall-local:
	rm -f $(DESTDIR)$(bindir)/liveinst
	for d in $(DESTDIR)$(bindir) ; do
		while [ ! -z "$$d" ]; do \
			rmdir $$d 2>/dev/null ; \
			d="`dirname $$d`" ; \
		done ; \
	done