make.sh: Introduce DEFAULT_PARALLELISM
[ipfire-2.x.git] / src / installer / Makefile.am
CommitLineData
37f3421a 1# This file is part of the installer.
5315fae6 2#
37f3421a 3# installer is free software; you can redistribute it and/or modify it
5315fae6
MT
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
37f3421a 12SUBDIRS = . po
5315fae6
MT
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 = \
7d114284 36 downloadsource.sh \
681c9bbe 37 execute-postinstall.sh \
befc0404 38 install-bootloader \
7d114284 39 start-networking.sh
5315fae6
MT
40
41#- installer -------------------------------------------------------------------
42
43installer_SOURCES = \
44 hw.c \
45 hw.h \
07d6f947 46 main.c
5315fae6
MT
47
48installer_CFLAGS = \
335c5bd1 49 $(AM_CFLAGS) \
5315fae6
MT
50 $(BLKID_CFLAGS) \
51 $(LIBSMOOTH_CFLAGS) \
52 $(PCI_CFLAGS) \
53 $(UDEV_CFLAGS)
54
55installer_LDADD = \
56 $(BLKID_LIBS) \
57 $(LIBSMOOTH_LIBS) \
58 $(NEWT_LIBS) \
59 $(PCI_LIBS) \
60 $(UDEV_LIBS)
61
62dracutmodule_DATA = \
63 dracut-module/70-dhcpcd.exe \
64 dracut-module/fake-root.sh \
65 dracut-module/module-setup.sh \
66 dracut-module/run-installer.sh
67
68#-------------------------------------------------------------------------------
69
70substitutions = \
71 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
72 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
73 '|prefix=$(prefix)|' \
74 '|exec_prefix=$(exec_prefix)|' \
75 '|libdir=$(libdir)|' \
76 '|includedir=$(includedir)|'
77
78SED_PROCESS = \
79 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
80 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) < $< > $@
81
82%.pc: %.pc.in Makefile
83 $(SED_PROCESS)