summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-13 22:18:16 +0200
committerMattias Andrée <m@maandree.se>2026-05-13 22:18:16 +0200
commitdb528a5d90415ec209aec34b1fa8e76850e7a954 (patch)
tree95f372430cfbdfaf0a06411675860cd2cda39538 /Makefile
downloadhow-to-update-process-master.tar.gz
how-to-update-process-master.tar.bz2
how-to-update-process-master.tar.xz
First commitHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..97aef18
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+.POSIX:
+
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
+OBJ =\
+ how-to-update-process.o
+
+HDR =
+
+all: how-to-update-process
+$(OBJ): $(HDR)
+
+.c.o:
+ $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
+
+how-to-update-process: $(OBJ)
+ $(CC) -o $@ $(OBJ) $(LDFLAGS)
+
+install: how-to-update-process
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
+ cp -- how-to-update-process "$(DESTDIR)$(PREFIX)/bin/"
+ cp -- how-to-update-process.1 "$(DESTDIR)$(MANPREFIX)/man1/"
+
+uninstall:
+ -rm -f -- "$(DESTDIR)$(PREFIX)/bin/how-to-update-process"
+ -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/how-to-update-process.1"
+
+clean:
+ -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda
+ -rm -f -- how-to-update-process
+
+.SUFFIXES:
+.SUFFIXES: .o .c
+
+.PHONY: all install uninstall clean