diff options
author | Aki <please@ignore.pl> | 2021-08-29 21:32:55 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-29 21:32:55 +0200 |
commit | 9afe79224cd4fde684bbbab347a90222b917e504 (patch) | |
tree | f4819f0b5037ddf09d4eafec5906b8844e5b96eb /Makefile | |
parent | 31c614d6916c5573eb11a25cce996c5e3afbb5f0 (diff) | |
download | plop-9afe79224cd4fde684bbbab347a90222b917e504.zip plop-9afe79224cd4fde684bbbab347a90222b917e504.tar.gz plop-9afe79224cd4fde684bbbab347a90222b917e504.tar.bz2 |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 18 insertions, 17 deletions
@@ -3,9 +3,10 @@ CFLAGS+=`pkg-config --cflags lua5.4` LDLIBS+=`pkg-config --libs lua5.4` PREFIX?=/usr/local -SHARE?=$(PREFIX)/share -MANDIR?=$(SHARE)/man/man1 -PLOP_DEFAULT_HANDLER?=$(SHARE)/plop/default.lua +BINDIR?=$(PREFIX)/bin +DATADIR?=$(PREFIX)/share +MANDIR?=$(DATADIR)/man/man1 +PLOP_DEFAULT_HANDLER?=$(DATADIR)/plop/default.lua all: plop @@ -22,26 +23,26 @@ clean: rm -f plop *.o install: plop - mkdir -p $(DESTDIR)$(PREFIX)/bin - mkdir -p $(DESTDIR)$(MANDIR)/man/man1 - mkdir -p $(DESTDIR)$(SHARE)/plop - cp -f plop $(DESTDIR)$(PREFIX)/bin - cp -f plop.1 $(DESTDIR)$(MANDIR)/man/man1 - cp -f default.lua $(DESTDIR)$(SHARE)/plop - chmod 755 $(DESTDIR)$(PREFIX)/bin/plop - chmod 644 $(DESTDIR)$(MANDIR)/man/man1/plop.1 - chmod 644 $(DESTDIR)$(SHARE)/plop/default.lua + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(MANDIR) + mkdir -p $(DESTDIR)$(DATADIR)/plop + cp -f plop $(DESTDIR)$(BINDIR)/plop + cp -f plop.1 $(DESTDIR)$(MANDIR)/plop.1 + cp -f default.lua $(DESTDIR)$(DATADIR)/plop + chmod 755 $(DESTDIR)$(BINDIR)/plop + chmod 644 $(DESTDIR)$(MANDIR)/plop.1 + chmod 644 $(DESTDIR)$(DATADIR)/plop/default.lua uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/plop - rm -f $(DESTDIR)$(MANDIR)/man/man1/plop.1 - rm -f $(DESTDIR)$(SHARE)/plop/default.lua - rmdir $(DESTDIR)$(SHARE)/plop + rm -f $(DESTDIR)$(BINDIR)/plop + rm -f $(DESTDIR)$(MANDIR)/plop.1 + rm -f $(DESTDIR)$(DATADIR)/plop/default.lua + rmdir $(DESTDIR)$(DATADIR)/plop env: @echo DESTDIR=$(DESTDIR) @echo PREFIX=$(PREFIX) - @echo SHARE=$(SHARE) + @echo DATADIR=$(DATADIR) @echo MANDIR=$(MANDIR) @echo PLOP_DEFAULT_HANDLER=$(PLOP_DEFAULT_HANDLER) |