Organization, ignore binaries
This commit is contained in:
parent
dc7c3666aa
commit
0accce69f1
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
cyoa
|
||||
cyoa.c
|
||||
storybook
|
||||
src/storybook
|
13
Makefile
13
Makefile
@ -1,10 +1,7 @@
|
||||
CC = g++
|
||||
CFLAGS = -g
|
||||
|
||||
all: storybook
|
||||
storybook: main.c cyoa.c
|
||||
$(CC) $(CFLAGS) main.c -o storybook
|
||||
cyoa.c: cyoa.leg
|
||||
leg -o $@ $^
|
||||
storybook:
|
||||
$(MAKE) -C src storybook
|
||||
cp src/storybook storybook
|
||||
clean:
|
||||
rm -f cyoa.c cyoa storybook
|
||||
rm -f storybook
|
||||
$(MAKE) -C src clean
|
||||
|
10
src/Makefile
Normal file
10
src/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
CC = g++
|
||||
CFLAGS = -g
|
||||
|
||||
all: storybook
|
||||
storybook: main.c cyoa.c
|
||||
$(CC) $(CFLAGS) main.c -o storybook
|
||||
cyoa.c: cyoa.leg
|
||||
leg -o $@ $^
|
||||
clean:
|
||||
rm -f cyoa.c cyoa storybook
|
Loading…
Reference in New Issue
Block a user