aboutsummaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-04 11:28:36 +0200
committerMattias Andrée <maandree@kth.se>2021-09-04 11:28:36 +0200
commit04b9e78ca973774fab1b261f1331516e7ecfa2e3 (patch)
tree2389853d729680ac1d27e2edcf7389ec70497370 /base
parentFix new-c-proj (diff)
downloaddotfiles-04b9e78ca973774fab1b261f1331516e7ecfa2e3.tar.gz
dotfiles-04b9e78ca973774fab1b261f1331516e7ecfa2e3.tar.bz2
dotfiles-04b9e78ca973774fab1b261f1331516e7ecfa2e3.tar.xz
improve new-c-proj
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-xbase/new-c-proj4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/new-c-proj b/base/new-c-proj
index e1c6d6a..be109ae 100755
--- a/base/new-c-proj
+++ b/base/new-c-proj
@@ -73,7 +73,7 @@ if printf '%s\n' "$1" | grep '^lib' >/dev/null 2>/dev/null; then
x $1.h
all: $1.a
- \$(OBJ): \$(@:.o=.c) \$(HDR)
+ \$(OBJ): \$(HDR)
.c.o:
x \$(CC) -c -o \$@ \$< \$(CFLAGS) \$(CPPFLAGS)
@@ -120,7 +120,7 @@ else
HDR =
all: $1
- \$(OBJ): \$(@:.o=.c) \$(HDR)
+ \$(OBJ): \$(HDR)
.c.o:
x \$(CC) -c -o \$@ \$< \$(CFLAGS) \$(CPPFLAGS)