-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 1.33 KB
/
Makefile
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
SHELL=/bin/bash
PREFIX ?= $(shell pwd)
CONF_FILES = /etc/sysconfig/apache2 /etc/apache2/apache2.conf
.PHONY: apache_module eIDClientCore
all: client server
client: virtualsmartcard
server: virtualsmartcard eIDClientCore apache_module
virtualsmartcard:
git submodule update --init --recursive
cd vsmartcard/virtualsmartcard ;\
autoreconf --verbose --install ;\
./configure --sysconfdir=/etc ;\
make ;\
sudo make install
eIDClientCore:
git submodule update --init --recursive
cd eIDClientCore ;\
make
apache_module:
sed -i '/eIDClientCoreEIDCCBinaryPath \"\"/c\eIDClientCoreEIDCCBinaryPath \"'$(PREFIX)'\/eIDClientCore\/bin\/Start_Testcase --testcase=AutentApp\"' apache_module/httpd.conf.eIDClientCore
sed -i '/eIDClientCoreParserCommand \"\"/c\eIDClientCoreParserCommand \"python '$(PREFIX)'\/apache_module\/parser\/parser.py\"' apache_module/httpd.conf.eIDClientCore
sed -i '/eIDClientCoreEIDCCLibraryPath \"\"/c\eIDClientCoreEIDCCLibraryPath \"'$(PREFIX)'\/eIDClientCore\/lib/\"' apache_module/httpd.conf.eIDClientCore
make -C apache_module
$(foreach f,$(CONF_FILES),sudo echo 'Include '$(PREFIX)'/apache_module/httpd.conf.eIDClientCore' >> $(f) || echo Nevermind)
@echo -e "\nTried to set the correct path in the following configuration files: "$(CONF_FILES)". Please check, if everything is correct and set it manually, if it is not."