summaryrefslogtreecommitdiffstats
path: root/agents/virt/config/Makefile.am
blob: 19d974278a8cc8e57cd9bf0f8a0b47354e5f9411 (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
###############################################################################
###############################################################################
##
##  Copyright (C) 2009-2019 Red Hat, Inc.
##  
##  This copyrighted material is made available to anyone wishing to use,
##  modify, copy, or redistribute it subject to the terms and conditions
##  of the GNU General Public License v.2.
##
###############################################################################
###############################################################################

MAINTAINERCLEANFILES	  = Makefile.in

EXTRA_DIST		  = config.l config.y fence_virt.conf

noinst_LIBRARIES	  = libsimpleconfig.a

libsimpleconfig_a_SOURCES = \
			    simpleconfig.c

nodist_libsimpleconfig_a_SOURCES = \
			    y.tab.c \
			    config.c

libsimpleconfig_a_CFLAGS  = $(VIRT_AM_CFLAGS) $(AM_CFLAGS) -Wno-unused

noinst_HEADERS		  = config-stack.h


sysconf_DATA		  = fence_virt.conf

# local rules
y.tab.c: config.y
	$(YACC) -d $^

config.c: y.tab.c config.l
	$(LEX) -oconfig.c $(srcdir)/config.l

install-exec-hook:
	chmod 600 $(DESTDIR)$(sysconfdir)/fence_virt.conf

clean-local:
	rm -f config.tab.c config.tab.h config.c y.tab.c y.tab.h