diff options
author | Mattias Andrée <maandree@kth.se> | 2021-12-31 23:20:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-12-31 23:20:41 +0100 |
commit | 8f2a555f900228b531edba5e44e2e0cd7e8fe61e (patch) | |
tree | 51dd5bada07ce28f9022a6410fadcb74a3362310 /Makefile | |
download | makel-8f2a555f900228b531edba5e44e2e0cd7e8fe61e.tar.gz makel-8f2a555f900228b531edba5e44e2e0cd7e8fe61e.tar.bz2 makel-8f2a555f900228b531edba5e44e2e0cd7e8fe61e.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e67e73d --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + makelint.o\ + ui.o + +HDR =\ + common.h + +all: makelint +$(OBJ): $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +makelint: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +install: makelint + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- makelint "$(DESTDIR)$(PREFIX)/bin/" + cp -- makelint.1 "$(DESTDIR)$(MANPREFIX)/man1/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/makelint" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/makelint.1" + +clean: + -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda + -rm -f -- makelint + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean |