logo

inaban

Unnamed repository; edit this file 'description' to name the repository.
commit: f1a06988e7274a54af77aadce2600d46c2b00932
parent: 9eeb594aee286e789bcea3837b6e25ea516d82b2
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  1 Jul 2019 07:27:32 +0200

Makefile: Remove hardcodes from badwolf

Diffstat:

MMakefile20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile @@ -7,7 +7,7 @@ DATADIR = $(PREFIX)/share/inaban PACKAGE = inaban DEPS = xkbcommon wlroots wayland-server -OBJS = inaban +EXE = inaban TRANS = CC = cc @@ -18,10 +18,10 @@ LIBS = `pkg-config --libs $(DEPS)` WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols) WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner) -all: xdg-shell-protocol.c $(OBJS) $(TRANS) +all: xdg-shell-protocol.c $(EXE) $(TRANS) -po/messages.pot: badwolf.c - xgettext --keyword=_ --language=C -o $@ --add-comments --sort-output -j badwolf.c +po/messages.pot: $(EXE).c + xgettext --keyword=_ --language=C -o $@ --add-comments --sort-output -j $< po/%.po: po/messages.pot msgmerge --update $@ $< @@ -41,14 +41,14 @@ xdg-shell-protocol.c: xdg-shell-protocol.h install: all mkdir -p $(DESTDIR)$(BINDIR) - cp -p badwolf $(DESTDIR)$(BINDIR)/badwolf - mkdir -p $(DESTDIR)$(MANDIR)/man1 - cp -p badwolf.1 $(DESTDIR)$(MANDIR)/man1 - mkdir -p $(DESTDIR)$(DATADIR)/locale - cp -r locale/ $(DESTDIR)$(DATADIR) + cp -p $(EXE) $(DESTDIR)$(BINDIR)/$(EXE) + #mkdir -p $(DESTDIR)$(MANDIR)/man1 + #cp -p $(EXE).1 $(DESTDIR)$(MANDIR)/man1 + #mkdir -p $(DESTDIR)$(DATADIR)/locale + #cp -r locale/ $(DESTDIR)$(DATADIR) clean: - rm -fr locale $(OBJS) xdg-shell-protocol.c xdg-shell-protocol.h + rm -fr locale $(EXE) xdg-shell-protocol.c xdg-shell-protocol.h format: *.c *.h clang-format -style=file -assume-filename=.clang-format -i *.c *.h