projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile: make the symlink in BIN_DIR refer to the executable in DESTDIR
[tweeper.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
e39db8e
..
0102bc2
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-3,18
+3,29
@@
prefix ?= /usr/local
PHP_SCRIPT_DIR ?= $(prefix)/share/php
BIN_DIR := $(prefix)/bin
PHP_SCRIPT_DIR ?= $(prefix)/share/php
BIN_DIR := $(prefix)/bin
+MAN_DIR := $(prefix)/share/man
TWEEPER_DIR := $(PHP_SCRIPT_DIR)/tweeper
all:
TWEEPER_DIR := $(PHP_SCRIPT_DIR)/tweeper
all:
+
clean:
clean:
+ rm -f tweeper.1
+
+docs:
+ a2x -f manpage tweeper.1.asciidoc
+
+installdocs: docs
+ install -d $(DESTDIR)$(MAN_DIR)/man1
+ install -m644 tweeper.1 $(DESTDIR)$(MAN_DIR)/man1
-install:
+install:
installdocs
install -d $(DESTDIR)$(TWEEPER_DIR)
install -d $(DESTDIR)$(TWEEPER_DIR)
- install -m644 *.xsl $(DESTDIR)$(TWEEPER_DIR)
install -m644 *.php $(DESTDIR)$(TWEEPER_DIR)
install -m755 tweeper $(DESTDIR)$(TWEEPER_DIR)
install -m644 *.php $(DESTDIR)$(TWEEPER_DIR)
install -m755 tweeper $(DESTDIR)$(TWEEPER_DIR)
+ install -d $(DESTDIR)$(TWEEPER_DIR)/src
+ install -m644 src/* $(DESTDIR)$(TWEEPER_DIR)/src
install -d $(DESTDIR)$(BIN_DIR)
install -d $(DESTDIR)$(BIN_DIR)
- ln -
sf
$(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper
- @echo -e "\n\nINTALLATION COMPLETE"
+ ln -
rsf $(DESTDIR)
$(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper
+ @echo -e "\n\nIN
S
TALLATION COMPLETE"
@echo -e "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n"
@echo -e "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n"