From 490cecf001bb4a45ebca3ba4ef0e13ac9bd0ff14 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 10 Feb 2024 09:54:19 +0100 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..12205d1 --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + makeenv.o + +HDR = + +all: makeenv +$(OBJ): $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +makeenv: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +install: makeenv + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man5/" + cp -- makeenv "$(DESTDIR)$(PREFIX)/bin/" + cp -- makeenv.1 "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- makeenv.5 "$(DESTDIR)$(MANPREFIX)/man5/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/makeenv" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/makeenv.1" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man5/makeenv.5" + +clean: + -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda + -rm -f -- makeenv + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2