aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-23 07:01:05 +0100
committerMattias Andrée <m@maandree.se>2026-02-23 07:01:05 +0100
commitd8e843f707ff6c722de869861518727409cab44a (patch)
tree2f119e242c15278a9710aeb1379a34aef25868db /Makefile
parentm fixes (diff)
downloadautopasswd-d8e843f707ff6c722de869861518727409cab44a.tar.gz
autopasswd-d8e843f707ff6c722de869861518727409cab44a.tar.bz2
autopasswd-d8e843f707ff6c722de869861518727409cab44a.tar.xz
cleanupHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 55ddd0a..a708475 100644
--- a/Makefile
+++ b/Makefile
@@ -6,20 +6,18 @@
CONFIGFILE = config.mk
include $(CONFIGFILE)
-all: bin/autopasswd
+all: autopasswd
-bin/autopasswd: obj/autopasswd.o
- @mkdir -p bin
- $(CC) -o $@ obj/autopasswd.o $(LDFLAGS)
+.o:
+ $(CC) -o $@ $< $(LDFLAGS)
-obj/%.o: src/%.c
- @mkdir -p obj
+.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
-install: bin/autopasswd
+install: autopasswd
mkdir -p -- "$(DESTDIR)$(BINDIR)"
mkdir -p -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
- cp -- bin/autopasswd "$(DESTDIR)$(BINDIR)/$(COMMAND)"
+ cp -- autopasswd "$(DESTDIR)$(BINDIR)/$(COMMAND)"
cp -- COPYING LICENSE "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/"
uninstall:
@@ -29,6 +27,9 @@ uninstall:
-rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
clean:
- -rm -rf -- bin obj
+ -rm -f -- *.o *.su autopasswd
+
+.SUFFIXES:
+.SUFFIXES: .o .c
.PHONY: all install uninstall clean