]> git.ipfire.org Git - ipfire-2.x.git/blame_incremental - src/installer/Makefile.am
Move installer to its own directory.
[ipfire-2.x.git] / src / installer / Makefile.am
... / ...
CommitLineData
1# This file is part of the libsmooth library.
2#
3# libsmooth is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
9AM_MAKEFLAGS = --no-print-directory
10AUTOMAKE_OPTIONS = color-tests parallel-tests
11
12SUBDIRS = .
13
14# remove targets if the command fails
15.DELETE_ON_ERROR:
16
17# keep intermediate files
18.SECONDARY:
19
20CLEANFILES =
21EXTRA_DIST =
22dracutmoduledir = $(prefix)/lib/dracut/modules.d/99installer
23
24AM_CPPFLAGS = \
25 -include $(top_builddir)/config.h \
26 -I $(top_srcdir)/include \
27 $(OUR_CPPFLAGS)
28
29AM_CFLAGS = $(OUR_CFLAGS)
30AM_LDFLAGS = $(OUR_LDFLAGS)
31
32bin_PROGRAMS = \
33 installer
34
35bin_SCRIPTS = \
36 downloadsource.sh
37
38#- installer -------------------------------------------------------------------
39
40installer_SOURCES = \
41 hw.c \
42 hw.h \
43 main.c \
44 unattended.c
45
46installer_CFLAGS = \
47 $(BLKID_CFLAGS) \
48 $(LIBSMOOTH_CFLAGS) \
49 $(PCI_CFLAGS) \
50 $(UDEV_CFLAGS)
51
52installer_LDADD = \
53 $(BLKID_LIBS) \
54 $(LIBSMOOTH_LIBS) \
55 $(NEWT_LIBS) \
56 $(PCI_LIBS) \
57 $(UDEV_LIBS)
58
59dracutmodule_DATA = \
60 dracut-module/70-dhcpcd.exe \
61 dracut-module/fake-root.sh \
62 dracut-module/module-setup.sh \
63 dracut-module/run-installer.sh
64
65#-------------------------------------------------------------------------------
66
67substitutions = \
68 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
69 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
70 '|prefix=$(prefix)|' \
71 '|exec_prefix=$(exec_prefix)|' \
72 '|libdir=$(libdir)|' \
73 '|includedir=$(includedir)|'
74
75SED_PROCESS = \
76 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
77 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) < $< > $@
78
79%.pc: %.pc.in Makefile
80 $(SED_PROCESS)