From 00195baff8d1c3bea711a37852d26fc04edf0b2d Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 15 Oct 2015 15:38:05 +0800 Subject: switch to defined style standard --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 35601d2..6c64bed 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PREFIX = /usr/local SRC = x-session.c -X11SRC = x-move-resize.c x-alt-tab.c x-focus-manager.c x-placement-manager.c x-undecorate.c x-window-list.c -SCRIPTS= scripts/x-banish scripts/x-root-clean scripts/x-launcher +X11SRC = $(filter-out $(SRC),$(wildcard *.c)) +SCRIPTS= $(wildcard scripts/*) CC = gcc CFLAGS = -O2 -Wall -std=c99 -pedantic @@ -17,8 +17,11 @@ $(BIN): %: %.c $(X11BIN): %: %.c $(CC) $(CFLAGS) $(X11LIB) $^ -o $@ -clean: - rm $(BIN) $(X11BIN) +clean: dist + @rm $(basename $(wildcard *.c)) $(wildcard *.c.orig) + +dist: + @astyle --style=google *.c install: install -m 0755 $(BIN) $(X11BIN) $(SCRIPTS) ${PREFIX}/bin/. -- cgit v1.2.3