New makefile (src/tools/Makefile) logic:

- make fresh install: still builds new everything (libraries, services, image)
- make clean image: only builds new boot image (about 5 sec. now!)
This commit is contained in:
Jorrit Herder
2005-08-23 12:53:35 +00:00
parent 7bf400a709
commit b4d7de6ee1
6 changed files with 37 additions and 18 deletions

View File

@@ -20,14 +20,13 @@ OBJ = tty.o console.o vidcopy.o keyboard.o pty.o rs232.o
# build local binary
all build: $(DRIVER)
cd keymaps && $(MAKE) -$(MAKEFLAGS) $@
$(DRIVER): $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
install -S 256w $(DRIVER)
# install with other drivers
install: /usr/sbin/$(DRIVER)
cd keymaps && $(MAKE) -$(MAKEFLAGS) $@
cd keymaps && $(MAKE) -$(MAKEFLAGS) install
/usr/sbin/$(DRIVER): $(DRIVER)
install -o root -cs $? $@