diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-12-29 21:58:50 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-12-29 21:58:50 +0000 |
commit | c2ba79364f1fce5a7b62a07fffbf19cee710955b (patch) | |
tree | 3eb91c665d6742d5dcae7ccb082c2aa5bb554ba1 /Makefile | |
download | mbase-c2ba79364f1fce5a7b62a07fffbf19cee710955b.tar mbase-c2ba79364f1fce5a7b62a07fffbf19cee710955b.tar.gz mbase-c2ba79364f1fce5a7b62a07fffbf19cee710955b.tar.bz2 mbase-c2ba79364f1fce5a7b62a07fffbf19cee710955b.tar.lz mbase-c2ba79364f1fce5a7b62a07fffbf19cee710955b.tar.xz mbase-c2ba79364f1fce5a7b62a07fffbf19cee710955b.tar.zst mbase-c2ba79364f1fce5a7b62a07fffbf19cee710955b.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d9bbf31 --- /dev/null +++ b/Makefile @@ -0,0 +1,67 @@ +all: mbase skip +.PHONY: all + +.SUFFIXES: +.SUFFIXES: .c .o + +prefix = /home/src/mbase/prefix +exec_prefix = ${prefix} +bindir = ${exec_prefix}/bin +libexecdir = ${exec_prefix}/libexec + +SHELL = /bin/sh + +INSTALL = /nix/store/k8lhqzpaaymshchz8ky3z4653h4kln9d-coreutils-8.31/bin/install -c +INSTALL_PROGRAM = $(INSTALL) +MKDIR_P = /nix/store/k8lhqzpaaymshchz8ky3z4653h4kln9d-coreutils-8.31/bin/mkdir -p + +CFLAGS = -g + +.c.o: + $(CC) -c -DLIBEXECDIR='"$(libexecdir)"' $(CPPFLAGS) $(CFLAGS) $< + +%: %.c + +configure: configure.ac + autoconf + +Makefile: Makefile.in config.status + ./config.status + +config.status: configure + ./config.status --recheck + +install-dirs: + # TODO + +install: mbase skip install-dirs + $(MKDIR_P) $(DESTDIR)$(bindir) + $(INSTALL_PROGRAM) mbase $(DESTDIR)$(bindir)/ + + $(MKDIR_P) $(DESTDIR)$(libexecdir)/mbase + $(INSTALL_PROGRAM) skip $(DESTDIR)$(libexecdir)/mbase/ +.PHONY: install + +uninstall: + rm -f $(DESTDIR)$(bindir)/mbase + rm -fr $(DESTDIR)$(libexecdir)/mbase +.PHONY: uninstall + +install-strip: + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install +.PHONY: install-strip + +clean: + rm -f mbase mbase.o skip skip.o +.PHONY: clean + +distclean: clean + rm -f config.status config.log Makefile +.PHONY: distclean + +mbase-1.0.tar.gz: + -mkdir mbase-1.0 + cp install-sh configure.ac configure Makefile.in README mbase.c skip.c mbase-1.0 + tar czf mbase-1.0.tar.gz mbase-1.0 +dist: mbase-1.0.tar.gz +.PHONY: dist |