Simplify Makefile
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 10 Mar 2020 12:08:46 +0000 (08:08 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 10 Mar 2020 12:08:46 +0000 (08:08 -0400)
x5/Makefile

index 98f210c..839a0a5 100644 (file)
@@ -1,18 +1,13 @@
 CFLAGS := -Wall -Wextra
 LDLIBS := -lX11
 
-EXECUTABLES := khatus
+.PHONY: build clean rebuild
 
-.PHONY: \
-  build \
-  clean \
-  rebuild
-
-build: $(EXECUTABLES)
+build: khatus
 
 clean:
-       @find . -name '*.o' -type f -delete
-       @rm -f $(EXECUTABLES)
+       @rm -f khatus
 
-rebuild: clean
+rebuild:
+       @$(MAKE) -s clean
        @$(MAKE) -s build
This page took 0.026654 seconds and 4 git commands to generate.