X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-nagbar%2FMakefile;h=12748e218e477b564bcdd9e3c3166316f7ed77ff;hb=6d94231f745bfa9c85c8cec8bf862cdfcc8a07d7;hp=8d9283bc851bb78d56fe189a2a1dd9380753a50d;hpb=c55abca11555d735bf15b14d4f7eaeb61ee6c034;p=i3%2Fi3 diff --git a/i3-nagbar/Makefile b/i3-nagbar/Makefile index 8d9283bc..12748e21 100644 --- a/i3-nagbar/Makefile +++ b/i3-nagbar/Makefile @@ -1,28 +1,10 @@ -# Default value so one can compile i3-nagbar standalone -TOPDIR=.. +all: + $(MAKE) -C .. i3-nagbar/i3-nagbar -include $(TOPDIR)/common.mk - -# Depend on the object files of all source-files in src/*.c and on all header files -FILES=$(patsubst %.c,%.o,$(wildcard *.c)) -HEADERS=$(wildcard *.h) - -# Depend on the specific file (.c for each .o) and on all headers -%.o: %.c ${HEADERS} - echo "CC $<" - $(CC) $(CFLAGS) -c -o $@ $< - -all: ${FILES} - echo "LINK i3-nagbar" - $(CC) -o i3-nagbar ${FILES} $(LDFLAGS) - -install: all - echo "INSTALL" - $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin - $(INSTALL) -m 0755 i3-nagbar $(DESTDIR)$(PREFIX)/bin/ +install: + $(MAKE) -C .. install-i3-nagbar clean: - rm -f *.o + $(MAKE) -C .. clean-i3-nagbar -distclean: clean - rm -f i3-nagbar +.PHONY: all install clean