23 lines
722 B
Text
23 lines
722 B
Text
Index: makefile
|
|
--- makefile.orig
|
|
+++ makefile
|
|
@@ -21,7 +21,7 @@ src/microscheme_hex.c: src/*.ms
|
|
xxd -i src/avr_core.ms >> src/microscheme_hex.c
|
|
|
|
microscheme: hexify src/*.h src/*.c
|
|
- gcc -ggdb -std=gnu99 -Wall -Wextra -Werror -o microscheme src/*.c
|
|
+ $(CC) $(CFLAGS) -o microscheme src/*.c
|
|
|
|
check:
|
|
cppcheck --enable=all --inconclusive --std=c11 --error-exitcode=2 src
|
|
@@ -33,8 +33,8 @@ format:
|
|
install:
|
|
install -d $(PREFIX)/bin/
|
|
install -m755 ./microscheme $(PREFIX)/bin/microscheme
|
|
- install -d $(PREFIX)/share/microscheme/
|
|
- cp -r examples/ $(PREFIX)/share/microscheme/
|
|
+ install -d $(PREFIX)/share/examples/microscheme/
|
|
+ cp -R examples/* $(PREFIX)/share/examples/microscheme/
|
|
|
|
clean:
|
|
-rm microscheme
|