-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (33 loc) · 902 Bytes
/
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
35
36
37
38
prefix ?= /usr/local
exec_prefix = $(prefix)
sbindir = $(exec_prefix)/sbin
sysconfdir ?= $(prefix)/etc
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
.PHONY: build
build:
@echo :\)
.PHONY: test
test:
ruby1.9.3 test/run.rb
.PHONY: installdirs
installdirs:
mkdir -p $(DESTDIR)$(sysconfdir)
mkdir -p $(DESTDIR)$(sbindir)
mkdir -p $(DESTDIR)$(prefix)/lib/ruby/vendor_ruby/puavo-tftp
.PHONY: install
install: installdirs
$(INSTALL_PROGRAM) -t $(DESTDIR)$(sbindir) \
puavo-tftpd
$(INSTALL_DATA) -t $(DESTDIR)$(prefix)/lib/ruby/vendor_ruby/puavo-tftp \
puavo-tftp/*.rb
ifeq ($(INSTALL_HOOKS),yes)
$(INSTALL_PROGRAM) -t $(DESTDIR)$(sbindir) \
hooks/puavo-ltspboot-config \
hooks/puavo-lts-config
$(INSTALL_DATA) -t $(DESTDIR)$(sysconfdir) \
hooks/puavo-tftp.yml
$(INSTALL_DATA) -t $(DESTDIR)$(prefix)/lib/ruby/vendor_ruby \
hooks/puavo-ldap.rb
endif