-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (16 loc) · 725 Bytes
/
Copy pathMakefile
File metadata and controls
18 lines (16 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
bindir=$(DESTDIR)/usr/bin
sysconfdir=$(DESTDIR)/etc
all:
# openssl req -x509 -newkey rsa:2048 -keyout $(sysconfdir)/server.key -out $(sysconfdir)/server.crt -nodes -days 9999 -subj "/C=MD/ST=Chisinau/L=Chisinau/O=IT/CN=www.example.com"
# openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.crt -nodes -days 9999 -subj "/C=MD/ST=Chisinau/L=Chisinau/O=IT/CN=www.example.com"
echo "Nothing to compile, please run make install"
install: all
# env
mkdir -p $(sysconfdir)/fake_ilo/
install -m 0755 ilo.py $(bindir)
install -m 0755 fake_ilo $(sysconfdir)/init.d/
# install -m 0600 server.key $(sysconfdir)/fake_ilo/
# install -m 0600 server.crt $(sysconfdir)/fake_ilo/
clean:
rm -f server.key
rm -f server.crt