diff options
author | Derecho <derecho@sector5d.org> | 2015-10-27 11:37:43 +0100 |
---|---|---|
committer | Derecho <derecho@sector5d.org> | 2015-10-27 11:37:43 +0100 |
commit | 881b5d3ef77ff0f3da59f68085f21626d4fe5b2d (patch) | |
tree | f26a8540ee0ce75cacaf47714f3a8b86bca5330f | |
parent | 773b4b739130078fe18b68f3d06ee0e67d3dafaf (diff) | |
download | radiola-881b5d3ef77ff0f3da59f68085f21626d4fe5b2d.tar.gz radiola-881b5d3ef77ff0f3da59f68085f21626d4fe5b2d.zip |
Create required directories in top-level Makefile
Added distclean target
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,9 +20,13 @@ make: $(OBJECTS) ld -r $(OBJECTS_FINAL) -o $(PROJECT).o %.o: %.c + @mkdir -p `dirname $(BUILD_DIR)$@` $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@ clean: rm -f $(PROJECT) rm -f $(OBJECTS_FINAL) rm -f *.o + +distclean: clean + rm -rf $(BUILD_DIR) |