git-export-filter.c: avoid extra LFs and grok get-mark
[git-export-filter.git] / Makefile
blobe398a3af5224f3eacd3d946ca407150ff07f9190
1 .PHONY : all clean
3 CC ?= cc
4 CFLAGS ?= -O2
5 COPTS ?= -Wall -Wextra
7 all : git-export-filter
9 clean :
10 rm -rf *.dSYM *.o *.inc git-export-filter
12 git-export-filter.o : git-export-filter.c git-export-help.inc
13 $(CC) $(CFLAGS) $(COPTS) -c -o $@ $*.c
15 git-export-filter : git-export-filter.o
16 $(CC) $(CFLAGS) -o $@ $@.o
17 case "$(CFLAGS)" in *"-g"*) if [ "`uname -s`" = "Darwin" ]; then dsymutil $@; fi; esac
19 git-export-help.inc : git-export-help.txt
20 sed -e 's/\\/\\\\/g;s/"/\\"/g;s/^/"/;s/$$/\\n"/;' $? > $@