Update Makefile

This commit is contained in:
Night Kaly 2024-10-22 01:15:15 +01:00
parent f735556723
commit ebcb013ab0
Signed by: night0721
GPG key ID: 957D67B8DB7A119B
2 changed files with 5 additions and 8 deletions

View file

@ -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
View file

@ -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