]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/installer/Makefile.am
use HTTPS for downloading GeoIP database files
[people/pmueller/ipfire-2.x.git] / src / installer / Makefile.am
1 # This file is part of the installer.
2 #
3 # installer 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
8 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
9 AM_MAKEFLAGS = --no-print-directory
10 AUTOMAKE_OPTIONS = color-tests parallel-tests
11
12 SUBDIRS = . po
13
14 # remove targets if the command fails
15 .DELETE_ON_ERROR:
16
17 # keep intermediate files
18 .SECONDARY:
19
20 CLEANFILES =
21 EXTRA_DIST =
22 dracutmoduledir = $(prefix)/lib/dracut/modules.d/99installer
23
24 AM_CPPFLAGS = \
25 -include $(top_builddir)/config.h \
26 -I $(top_srcdir)/include \
27 $(OUR_CPPFLAGS)
28
29 AM_CFLAGS = $(OUR_CFLAGS)
30 AM_LDFLAGS = $(OUR_LDFLAGS)
31
32 bin_PROGRAMS = \
33 installer
34
35 bin_SCRIPTS = \
36 downloadsource.sh \
37 execute-postinstall.sh \
38 install-bootloader \
39 start-networking.sh
40
41 #- installer -------------------------------------------------------------------
42
43 installer_SOURCES = \
44 hw.c \
45 hw.h \
46 main.c
47
48 installer_CFLAGS = \
49 $(AM_CFLAGS) \
50 $(BLKID_CFLAGS) \
51 $(LIBSMOOTH_CFLAGS) \
52 $(PCI_CFLAGS) \
53 $(UDEV_CFLAGS)
54
55 installer_LDADD = \
56 $(BLKID_LIBS) \
57 $(LIBSMOOTH_LIBS) \
58 $(NEWT_LIBS) \
59 $(PCI_LIBS) \
60 $(UDEV_LIBS)
61
62 dracutmodule_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
70 substitutions = \
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
78 SED_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)