diff options
author | Karel Kočí <cynerd@email.cz> | 2016-11-17 17:52:41 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-11-17 17:56:33 +0100 |
commit | ad2a23815a49245117cadbfcb6a59dfd6fc95483 (patch) | |
tree | 0342f46b1e92ccfce96a6650b5250d3fafd73cfa /Makefile | |
parent | 3e3af1dab62cac49c72143dddfbe097b43c2bba2 (diff) | |
download | geml-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-- | Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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 |