Update Makefile
This commit is contained in:
parent
f735556723
commit
ebcb013ab0
2 changed files with 5 additions and 8 deletions
9
Makefile
9
Makefile
|
@ -1,14 +1,12 @@
|
|||
.POSIX:
|
||||
.SUFFIXES:
|
||||
|
||||
CC = cc
|
||||
VERSION = 1.0
|
||||
TARGET = lcc
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
|
||||
# Flags
|
||||
CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
|
||||
CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall
|
||||
|
||||
SRC = lcc.c
|
||||
|
||||
|
@ -24,15 +22,14 @@ dist:
|
|||
|
||||
install: $(TARGET)
|
||||
mkdir -p $(DESTDIR)$(BINDIR)
|
||||
mkdir -p $(DESTDIR)$(MANDIR)
|
||||
cp -p $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
|
||||
uninstall:
|
||||
$(RM) $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
rm $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET)
|
||||
rm $(TARGET)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
|
|
4
lcc.h
4
lcc.h
|
@ -51,9 +51,9 @@ language languages[] = {
|
|||
{"Vimscript", {".vim"}, NULL, NULL, "\""},
|
||||
};
|
||||
|
||||
#define IGNORE_DIRS 5
|
||||
#define IGNORE_DIRS 8
|
||||
/* IGNORE_DIRS must have same length of ignore_dir */
|
||||
|
||||
char *ignore_dir[IGNORE_DIRS] = {"stagit", "env", "TerminalChat", "cath-docs", ".d.ts"};
|
||||
char *ignore_dir[IGNORE_DIRS] = {"stagit", "env", "ref", "cath-docs", ".d.ts", "coslinux", "Zig", "pdfs"};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue