forked from satya/beacon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 850 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
NAME = beacon
VERSION = 0.5
TEMPDIR = /tmp/$(NAME)-$(VERSION)
prefix = /usr
sysconfdir = /etc
installdir = $(prefix)/share
httpdconfd = $(sysconfdir)/httpd/conf.d
SOURCES = beacon php docs httpd-beacon.conf TODO \
LICENSE README Makefile
dist:
@rm -rf $(TEMPDIR)
@mkdir -p $(TEMPDIR)
@cp -rp $(SOURCES) $(TEMPDIR)/
@(cd /tmp/; tar -czf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)/)
@mv /tmp/$(NAME)-$(VERSION).tar.gz .
@rm -rf $(TEMPDIR)
install:
@mkdir -p $(installdir)/beacon $(httpdconfd)
@cp -rp beacon php $(installdir)/beacon/
@find $(installdir)/beacon -type f -exec chmod o=r {} \;
@find $(installdir)/beacon -type d -exec chmod o=rx {} \;
@cp -p httpd-beacon.conf $(httpdconfd)/httpd-beacon.conf
clean:
@rm -f $(NAME)-$(VERSION).tar.gz
uninstall:
@rm -rf $(installdir)/beacon
@rm -rf $(httpdconfd)/httpd-beacon.conf