aboutsummaryrefslogtreecommitdiffstats
path: root/util/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-28 18:46:27 +0200
committerMattias Andrée <m@maandree.se>2026-05-28 18:46:27 +0200
commit55e9f58fa7c551aebfd6084b778cd942fa8b20ce (patch)
tree7177e49a9c3a3c2e9cd4f88e8507cb19c9f6c1b0 /util/Makefile
parentm fix (diff)
downloadrelease-scripts-55e9f58fa7c551aebfd6084b778cd942fa8b20ce.tar.gz
release-scripts-55e9f58fa7c551aebfd6084b778cd942fa8b20ce.tar.bz2
release-scripts-55e9f58fa7c551aebfd6084b778cd942fa8b20ce.tar.xz
Update (fixes support for a few edge cases, and leaves nothing laying around)
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/util/Makefile b/util/Makefile
new file mode 100644
index 0000000..d5e3a6c
--- /dev/null
+++ b/util/Makefile
@@ -0,0 +1,36 @@
+.POSIX:
+
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
+BIN =\
+ tmpmount\
+ repodiff
+
+OBJ =\
+ tmpmount.o\
+ repodiff.o
+
+HDR =
+
+all: $(BIN)
+$(OBJ): $(HDR)
+
+.c.o:
+ $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
+
+tmpmount: tmpmount.o
+ $(CC) -o $@ tmpmount.o $(LDFLAGS)
+ $(ASROOT) sh -c "chown -- '0:0' $@ && chmod -- 4755 $@"
+
+repodiff: repodiff.o
+ $(CC) -o $@ repodiff.o $(LDFLAGS)
+
+clean:
+ -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda
+ -rm -f -- $(BIN)
+
+.SUFFIXES:
+.SUFFIXES: .o .c
+
+.PHONY: all clean