aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-11-17 17:52:41 +0100
committerKarel Kočí <cynerd@email.cz>2016-11-17 17:56:33 +0100
commitad2a23815a49245117cadbfcb6a59dfd6fc95483 (patch)
tree0342f46b1e92ccfce96a6650b5250d3fafd73cfa /Makefile
parent3e3af1dab62cac49c72143dddfbe097b43c2bba2 (diff)
downloadgeml-ad2a23815a49245117cadbfcb6a59dfd6fc95483.tar.gz
geml-ad2a23815a49245117cadbfcb6a59dfd6fc95483.tar.bz2
geml-ad2a23815a49245117cadbfcb6a59dfd6fc95483.zip
Implement install and uninstall target and manual template
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ed406f5..780c5d4 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ DEP = $(patsubst src/%.c,$(O)/build/%.d,$(CSRC))
.PHONY: help
help:
- @echo "Simple general preprocessor make targets:"
+ @echo "General extendable macro language make targets:"
@echo " all|geml - Build geml executable"
@echo " help - Prints this text help."
@echo " install - Install geml to you system"
@@ -52,12 +52,21 @@ help:
@echo " Q - Define emty to show executed commands"
.PHONY: install
-install:
- #TODO
+install: $(O)/geml
+ @echo " INSTALL $(EPREFIX)/bin/geml"
+ $(Q)$(INSTALL) -d $(EPREFIX)/bin
+ $(Q)$(INSTALL) -m 755 $(O)/geml $(EPREFIX)/bin
+ @echo " INSTALL $(EPREFIX)/share/man/man1/geml.1.gz"
+ $(Q)$(INSTALL) -d $(PREFIX)/share/man/man1
+ $(Q)$(INSTALL) -m 644 docs/geml.man $(PREFIX)/share/man/man1/geml.1
+ $(Q)$(GZIP) -f $(PREFIX)/share/man/man1/geml.1
.PHONY: uninstall
uninstall:
- #TODO
+ @echo " RM $(EPREFIX)/bin/geml"
+ $(Q)$(RM) $(EPREFIX)/bin/geml
+ @echo " RM $(PREFIX)/share/man/man1/geml.1.gz"
+ $(Q)$(RM) $(PREFIX)/share/man/man1/geml.1.gz
# Cleaning
.PHONY: clean