Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mkdir -p instead of ignoring return code #675

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ else
endif

all:
-mkdir bin
mkdir -p bin
cp scripts/keyd-application-mapper bin/
$(CC) $(CFLAGS) -O3 $(COMPAT_FILES) src/*.c src/vkbd/$(VKBD).c -lpthread -o bin/keyd $(LDFLAGS)
debug:
CFLAGS="-g -fsanitize=address -Wunused" $(MAKE)
compose:
-mkdir data
mkdir -p data
./scripts/generate_xcompose
man:
for f in docs/*.scdoc; do \
Expand Down Expand Up @@ -91,14 +91,14 @@ uninstall:
$(DESTDIR)$(PREFIX)/bin/keyd-usb-gadget.sh \
$(DESTDIR)$(PREFIX)/lib/systemd/system/keyd.service
clean:
-rm -rf bin keyd.service src/vkbd/usb-gadget.service
rm -rf bin keyd.service src/vkbd/usb-gadget.service
test:
@cd t; \
for f in *.sh; do \
./$$f; \
done
test-io:
-mkdir bin
mkdir -p bin
$(CC) \
-DDATA_DIR= \
-o bin/test-io \
Expand Down